#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