1.1 --- a/src/cx/common.h Tue Feb 07 20:08:08 2023 +0100 1.2 +++ b/src/cx/common.h Tue Feb 07 20:08:45 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,12 +105,15 @@ 1.12 ); 1.13 1.14 #ifdef _WIN32 1.15 +#ifdef __MINGW32__ 1.16 +#include <sys/types.h> 1.17 +#endif // __MINGW32__ 1.18 #ifndef __WORDSIZE 1.19 #ifdef _WIN64 1.20 #define __WORDSIZE 64 1.21 #else 1.22 #define __WORDSIZE 32 1.23 -#endif 1.24 +#endif // _WIN64 1.25 #endif // __WORDSIZE 1.26 #else // !_WIN32 1.27