From 1fc1181bb7b5118546da013b70397af51b37f5bc Mon Sep 17 00:00:00 2001 From: Jason Ginchereau Date: Tue, 21 Mar 2017 12:09:29 -0700 Subject: [PATCH] Typedef char16_t for older MSVC (#175) --- src/node_api_types.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/node_api_types.h b/src/node_api_types.h index 0607bc1459d37f..86fd5767c341ce 100644 --- a/src/node_api_types.h +++ b/src/node_api_types.h @@ -4,6 +4,10 @@ #include #include +#if !defined __cplusplus || (defined(_MSC_VER) && _MSC_VER < 1900) + typedef uint16_t char16_t; +#endif + // JSVM API types are all opaque pointers for ABI stability // typedef undefined structs instead of void* for compile time type safety typedef struct napi_env__ *napi_env;