1.1 --- a/src/cx/common.h Wed Feb 08 20:26:09 2023 +0100 1.2 +++ b/src/cx/common.h Wed Feb 08 20:26:26 2023 +0100 1.3 @@ -92,6 +92,7 @@ 1.4 #include <stdlib.h> 1.5 #include <stddef.h> 1.6 #include <stdbool.h> 1.7 +#include <stdint.h> 1.8 1.9 /** 1.10 * Function pointer compatible with fwrite-like functions. 1.11 @@ -104,13 +105,11 @@ 1.12 ); 1.13 1.14 #ifdef _WIN32 1.15 -#ifndef __WORDSIZE 1.16 -#ifdef _WIN64 1.17 -#define __WORDSIZE 64 1.18 -#else 1.19 -#define __WORDSIZE 32 1.20 -#endif 1.21 -#endif // __WORDSIZE 1.22 + 1.23 +#ifdef __MINGW32__ 1.24 +#include <sys/types.h> 1.25 +#endif // __MINGW32__ 1.26 + 1.27 #else // !_WIN32 1.28 1.29 #include <sys/types.h>