X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;ds=inline;f=libs%2Fimago%2Fsrc%2Finttypes.h;h=cbcc4d0ce6396b7b62d5b5f7b068cec3eb0c999e;hb=dcc815e69d92ecf20b063e38903bcedee7a19f2d;hp=6f941adf761bf08cb78736388ce138e581136915;hpb=49f1b7996c5a754dad949f4fb6043316ac7b75e7;p=dosdemo
diff --git a/libs/imago/src/inttypes.h b/libs/imago/src/inttypes.h
index 6f941ad..cbcc4d0 100644
--- a/libs/imago/src/inttypes.h
+++ b/libs/imago/src/inttypes.h
@@ -18,7 +18,7 @@ along with this program. If not, see .
#ifndef INT_TYPES_H_
#define INT_TYPES_H_
-#if defined(__DOS__) || defined(WIN32)
+#if defined(__DOS__) || defined(__MSDOS__)
typedef char int8_t;
typedef short int16_t;
typedef long int32_t;
@@ -29,7 +29,29 @@ typedef unsigned long uint32_t;
typedef unsigned long intptr_t;
#else
+
+#ifdef _MSC_VER
+typedef __int8 int8_t;
+typedef __int16 int16_t;
+typedef __int32 int32_t;
+typedef unsigned __int8 uint8_t;
+typedef unsigned __int16 uint16_t;
+typedef unsigned __int32 uint32_t;
+
+#ifdef _WIN64
+typedef __int64 intptr_t;
+#else
+typedef __int32 intptr_t;
+#endif
+#else /* not msvc */
+
+#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199900
#include
+#else
+#include
#endif
+#endif /* end !msvc */
+#endif /* end !dos */
+
#endif /* INT_TYPES_H_ */