diff -r 502105523db7 -r 34120a385fc8 src/cx/common.h --- a/src/cx/common.h Sun Apr 16 20:50:19 2023 +0200 +++ b/src/cx/common.h Sun Apr 16 21:09:25 2023 +0200 @@ -89,10 +89,13 @@ /** Version constant which ensures to increase monotonically. */ #define UCX_VERSION (((UCX_VERSION_MAJOR)<<16)|UCX_VERSION_MINOR) +// Common Includes + #include #include #include #include +#include /** * Function pointer compatible with fwrite-like functions. @@ -114,17 +117,8 @@ void * ); -#ifdef _WIN32 -#ifdef __MINGW32__ -#include -#endif // __MINGW32__ - -#else // !_WIN32 - -#include - -#endif // _WIN32 +// Compiler specific stuff #ifndef __GNUC__ /** @@ -133,4 +127,15 @@ #define __attribute__(x) #endif +#ifdef _MSC_VER + +// fix missing ssize_t definition +#include +typedef SSIZE_T ssize_t; + +// fix missing _Thread_local support +#define _Thread_local __declspec(thread) + +#endif + #endif // UCX_COMMON_H