Browse Source

Win10x64: Fix undefined uint16_t

uint16_t would be undefined when using a Visual C++ compiler higher than version 1900, include stdint.h if that is the case.
notvita 8 years ago
parent
commit
fd1aa60047
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lib/Jsrt/ChakraCommon.h

+ 2 - 0
lib/Jsrt/ChakraCommon.h

@@ -94,6 +94,8 @@ typedef unsigned short WCHAR;
 
 #if (defined(_MSC_VER) && _MSC_VER <= 1900) || (!defined(_MSC_VER) && __cplusplus <= 199711L) // !C++11
 typedef unsigned short uint16_t;
+#else
+#include <stdint.h>
 #endif
 
     /// <summary>