check alloc
[dos_imgv] / src / util.h
index 1032520..37195e8 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef UTIL_H_
 #define UTIL_H_
 
+#if defined(__WATCOMC__) && __WATCOMC__ < 1200
+#define NO_STDINT_H
+#endif
 
 #ifdef NO_STDINT_H
 typedef char int8_t;
@@ -9,7 +12,7 @@ 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;
 #else
 #include <stdint.h>
 #endif