src/cx/common.h

changeset 654
c9d008861178
parent 651
19d1a8422f6e
child 674
dc514a5d42a5
--- a/src/cx/common.h	Wed Feb 08 20:26:09 2023 +0100
+++ b/src/cx/common.h	Wed Feb 08 20:26:26 2023 +0100
@@ -92,6 +92,7 @@
 #include <stdlib.h>
 #include <stddef.h>
 #include <stdbool.h>
+#include <stdint.h>
 
 /**
  * Function pointer compatible with fwrite-like functions.
@@ -104,13 +105,11 @@
 );
 
 #ifdef _WIN32
-#ifndef __WORDSIZE
-#ifdef _WIN64
-#define __WORDSIZE 64
-#else
-#define __WORDSIZE 32
-#endif
-#endif // __WORDSIZE
+
+#ifdef __MINGW32__
+#include <sys/types.h>
+#endif // __MINGW32__
+
 #else // !_WIN32
 
 #include <sys/types.h>

mercurial