uint16_t would be undefined when using a Visual C++ compiler higher than version 1900, include stdint.h if that is the case.
@@ -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>