diff src/common.h @ 377:506e266f930d

Vitaliy Didik - fix MSVC build
author Carl Byington <carl@five-ten-sg.com>
date Mon, 20 Nov 2017 08:19:28 -0800
parents 5a82d41c883d
children
line wrap: on
line diff
--- a/src/common.h	Fri Jul 21 21:35:01 2017 -0700
+++ b/src/common.h	Mon Nov 20 08:19:28 2017 -0800
@@ -9,18 +9,18 @@
 #include <time.h>
 
 
-#ifndef  _MSC_VER
+#if !defined(_MSC_VER) || (_MSC_VER >= 1800)
     #include <stdint.h>
     #include <inttypes.h>
 #else
     typedef signed char        int8_t;
     typedef unsigned char      uint8_t;
-	typedef unsigned short     uint16_t;
-	typedef short              int16_t;
+    typedef unsigned short     uint16_t;
+    typedef short              int16_t;
     typedef unsigned int       uint32_t;
-	typedef int                int32_t;
-	typedef unsigned long long uint64_t;
-	typedef long long          int64_t;
+    typedef int                int32_t;
+    typedef unsigned long long uint64_t;
+    typedef long long          int64_t;
 #endif
 
 #ifndef _WIN32