diff -r b855f76e965b -r 3e55bed345f9 ucx/ucx.h --- a/ucx/ucx.h Tue Sep 03 12:08:35 2013 +0200 +++ b/ucx/ucx.h Sat Sep 07 14:08:43 2013 +0200 @@ -36,6 +36,15 @@ #ifndef UCX_H #define UCX_H +/** Major UCX version as integer constant. */ +#define UCX_VERSION_MAJOR 1 + +/** Minor UCX version as integer constant. */ +#define UCX_VERSION_MINOR 0 + +/** The UCX version in format [major].[minor] */ +#define UCX_VERSION UCX_VERSION_MAJOR.UCX_VERSION_MINOR + #include #ifdef _WIN32 @@ -54,9 +63,11 @@ #define _Bool bool #define restrict #endif +/** Use C naming even when compiling with C++. */ #define UCX_EXTERN extern "C" extern "C" { #else +/** Pointless in C. */ #define UCX_EXTERN #endif