cross compile on UNIX with open watcom, and cleanup watdpmi
[dos_imgv] / src / util.h
index 1032520..6d1e57e 100644 (file)
@@ -3,13 +3,19 @@
 
 
 #ifdef NO_STDINT_H
+
+#if __WATCOMC__ >= 1200
+#include <sys/types.h>
+#else
 typedef char int8_t;
 typedef unsigned char uint8_t;
 typedef short int16_t;
 typedef unsigned short uint16_t;
 typedef int int32_t;
 typedef unsigned int uint32_t;
-typedef unsigned long intptr_t;
+typedef unsigned long uintptr_t;
+#endif
+
 #else
 #include <stdint.h>
 #endif