649:12c2b10b51a9 | 650:77021e06b1a8 |
---|---|
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 |
108 #ifdef __MINGW32__ | |
109 #include <sys/types.h> | |
110 #endif // __MINGW32__ | |
107 #ifndef __WORDSIZE | 111 #ifndef __WORDSIZE |
108 #ifdef _WIN64 | 112 #ifdef _WIN64 |
109 #define __WORDSIZE 64 | 113 #define __WORDSIZE 64 |
110 #else | 114 #else |
111 #define __WORDSIZE 32 | 115 #define __WORDSIZE 32 |
112 #endif | 116 #endif // _WIN64 |
113 #endif // __WORDSIZE | 117 #endif // __WORDSIZE |
114 #else // !_WIN32 | 118 #else // !_WIN32 |
115 | 119 |
116 #include <sys/types.h> | 120 #include <sys/types.h> |
117 | 121 |