Skip to content

Commit

Permalink
Typedef char16_t for older MSVC (nodejs#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongin committed Mar 21, 2017
1 parent ada8aa8 commit 1fc1181
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/node_api_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
#include <stddef.h>
#include <stdint.h>

#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;
Expand Down

0 comments on commit 1fc1181

Please sign in to comment.