check alloc
[dos_imgv] / src / util.h
index 6d1e57e..37195e8 100644 (file)
@@ -1,12 +1,11 @@
 #ifndef UTIL_H_
 #define UTIL_H_
 
+#if defined(__WATCOMC__) && __WATCOMC__ < 1200
+#define NO_STDINT_H
+#endif
 
 #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;
@@ -14,8 +13,6 @@ typedef unsigned short uint16_t;
 typedef int int32_t;
 typedef unsigned int uint32_t;
 typedef unsigned long uintptr_t;
-#endif
-
 #else
 #include <stdint.h>
 #endif