Skip to content

Commit fd1aa60

Browse files
ross-weirMSLaguana
authored andcommitted
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.
1 parent cbe8dba commit fd1aa60

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Jsrt/ChakraCommon.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ typedef unsigned short WCHAR;
9494

9595
#if (defined(_MSC_VER) && _MSC_VER <= 1900) || (!defined(_MSC_VER) && __cplusplus <= 199711L) // !C++11
9696
typedef unsigned short uint16_t;
97+
#else
98+
#include <stdint.h>
9799
#endif
98100

99101
/// <summary>

0 commit comments

Comments
 (0)