ucx/ucx.h

changeset 39
3e55bed345f9
parent 5
88625853ae74
child 70
88092b88ec00
equal deleted inserted replaced
38:b855f76e965b 39:3e55bed345f9
34 */ 34 */
35 35
36 #ifndef UCX_H 36 #ifndef UCX_H
37 #define UCX_H 37 #define UCX_H
38 38
39 /** Major UCX version as integer constant. */
40 #define UCX_VERSION_MAJOR 1
41
42 /** Minor UCX version as integer constant. */
43 #define UCX_VERSION_MINOR 0
44
45 /** The UCX version in format [major].[minor] */
46 #define UCX_VERSION UCX_VERSION_MAJOR.UCX_VERSION_MINOR
47
39 #include <stdlib.h> 48 #include <stdlib.h>
40 49
41 #ifdef _WIN32 50 #ifdef _WIN32
42 #if !(defined __ssize_t_defined || defined _SSIZE_T_) 51 #if !(defined __ssize_t_defined || defined _SSIZE_T_)
43 #include <BaseTsd.h> 52 #include <BaseTsd.h>
52 #ifdef __cplusplus 61 #ifdef __cplusplus
53 #ifndef _Bool 62 #ifndef _Bool
54 #define _Bool bool 63 #define _Bool bool
55 #define restrict 64 #define restrict
56 #endif 65 #endif
66 /** Use C naming even when compiling with C++. */
57 #define UCX_EXTERN extern "C" 67 #define UCX_EXTERN extern "C"
58 extern "C" { 68 extern "C" {
59 #else 69 #else
70 /** Pointless in C. */
60 #define UCX_EXTERN 71 #define UCX_EXTERN
61 #endif 72 #endif
62 73
63 /** 74 /**
64 * Function pointer to a compare function. 75 * Function pointer to a compare function.

mercurial