Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add a guard for the new C++17 features
  • Loading branch information
vmoroz committed Mar 30, 2022
commit 2b38a2a085b91a177a43c64c57605fdd1c637295
2 changes: 1 addition & 1 deletion src/node.h
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ extern "C" NODE_EXTERN void node_module_register(void* mod);
#endif

#if defined(_MSC_VER)
#if defined(__cplusplus)
#if defined(__cplusplus) && defined(__cpp_inline_variables)
// The NODE_C_CTOR macro defines a function fn that is called during dynamic
// initialization of static variables.
// The order of the dynamic initialization is not defined and code in fn
Expand Down
2 changes: 1 addition & 1 deletion src/node_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ typedef struct napi_module {
#define NAPI_MODULE_VERSION 1

#if defined(_MSC_VER)
#if defined(__cplusplus)
#if defined(__cplusplus) && defined(__cpp_inline_variables)
// The NAPI_C_CTOR macro defines a function fn that is called during dynamic
// initialization of static variables.
// The order of the dynamic initialization is not defined and code in fn
Expand Down