Skip to content

Commit 8eedb5f

Browse files
committed
Add NAN_HAS_CPLUSPLUS17 macro
1 parent 60e86a9 commit 8eedb5f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nan.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@
5151
# error This version of node/NAN/v8 requires a C++11 compiler
5252
#endif
5353

54+
#define NAN_HAS_CPLUSPLUS_17 (__cplusplus >= 201703L)
55+
5456
#include <uv.h>
5557
#include <node.h>
5658
#include <node_buffer.h>

0 commit comments

Comments
 (0)