summaryrefslogtreecommitdiff
path: root/include/ogg/os_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ogg/os_types.h')
-rw-r--r--include/ogg/os_types.h22
1 files changed, 16 insertions, 6 deletions
diff --git a/include/ogg/os_types.h b/include/ogg/os_types.h
index 446ca32..af44058 100644
--- a/include/ogg/os_types.h
+++ b/include/ogg/os_types.h
@@ -49,12 +49,22 @@
typedef short ogg_int16_t;
typedef unsigned short ogg_uint16_t;
# else
- /* MSVC/Borland */
- typedef __int64 ogg_int64_t;
- typedef __int32 ogg_int32_t;
- typedef unsigned __int32 ogg_uint32_t;
- typedef __int16 ogg_int16_t;
- typedef unsigned __int16 ogg_uint16_t;
+# if defined(_MSC_VER) && (_MSC_VER >= 1800) /* MSVC 2013 and newer */
+# include <stdint.h>
+ typedef int16_t ogg_int16_t;
+ typedef uint16_t ogg_uint16_t;
+ typedef int32_t ogg_int32_t;
+ typedef uint32_t ogg_uint32_t;
+ typedef int64_t ogg_int64_t;
+ typedef uint64_t ogg_uint64_t;
+# else
+ /* MSVC/Borland */
+ typedef __int64 ogg_int64_t;
+ typedef __int32 ogg_int32_t;
+ typedef unsigned __int32 ogg_uint32_t;
+ typedef __int16 ogg_int16_t;
+ typedef unsigned __int16 ogg_uint16_t;
+# endif
# endif
#elif defined(__MACOS__)