src/cx/common.h

changeset 654
c9d008861178
parent 651
19d1a8422f6e
child 674
dc514a5d42a5
equal deleted inserted replaced
647:2e6e9d9f2159 654:c9d008861178
90 #define UCX_VERSION (((UCX_VERSION_MAJOR)<<16)|UCX_VERSION_MINOR) 90 #define UCX_VERSION (((UCX_VERSION_MAJOR)<<16)|UCX_VERSION_MINOR)
91 91
92 #include <stdlib.h> 92 #include <stdlib.h>
93 #include <stddef.h> 93 #include <stddef.h>
94 #include <stdbool.h> 94 #include <stdbool.h>
95 #include <stdint.h>
95 96
96 /** 97 /**
97 * Function pointer compatible with fwrite-like functions. 98 * Function pointer compatible with fwrite-like functions.
98 */ 99 */
99 typedef size_t (*cx_write_func)( 100 typedef size_t (*cx_write_func)(
102 size_t, 103 size_t,
103 void * 104 void *
104 ); 105 );
105 106
106 #ifdef _WIN32 107 #ifdef _WIN32
107 #ifndef __WORDSIZE 108
108 #ifdef _WIN64 109 #ifdef __MINGW32__
109 #define __WORDSIZE 64 110 #include <sys/types.h>
110 #else 111 #endif // __MINGW32__
111 #define __WORDSIZE 32 112
112 #endif
113 #endif // __WORDSIZE
114 #else // !_WIN32 113 #else // !_WIN32
115 114
116 #include <sys/types.h> 115 #include <sys/types.h>
117 116
118 #endif // _WIN32 117 #endif // _WIN32

mercurial