X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=libs%2Fimago%2Fsrc%2Finttypes.h;fp=libs%2Fimago%2Fsrc%2Finttypes.h;h=cbcc4d0ce6396b7b62d5b5f7b068cec3eb0c999e;hp=bfa5d5c2b116bfa4d529e6f0f3478dad791bdbe7;hb=dc88088aa075f2269860b89433ccf5736dab1244;hpb=7705fa326336feba1a66d5a6ca8a7c27771e4c5f
diff --git a/libs/imago/src/inttypes.h b/libs/imago/src/inttypes.h
index bfa5d5c..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(__MSDOS__) || 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_ */