Skip to content

n-api: change #ifdef to #if in node_api_types

Rodrigo Muino Tomonari requested to merge github/fork/danbev/napi_if_macros into master

Currently, there are a number of compiler warnings like the following:

In file included from ../src/node_api.h:11:
../src/node_api_types.h:13:21:x
 warning: extra tokens at end of #ifdef directive [-Wextra-tokens]
 #ifdef NAPI_VERSION >= 4

This commit changes the #ifdef macros to #if.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading