diff options
author | Daniel Bevenius <daniel.bevenius@gmail.com> | 2019-01-22 11:00:34 +0100 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2019-01-23 05:23:38 +0100 |
commit | b070c996c9f08681457dd5444df951ede839ff04 (patch) | |
tree | 7730ec45d3996f4f5fa1ceb8d6e7e711f8c865e6 /src/node_api_types.h | |
parent | c33d38b449fe7d2625eec6bedf3c9b891749f0cf (diff) | |
download | android-node-v8-b070c996c9f08681457dd5444df951ede839ff04.tar.gz android-node-v8-b070c996c9f08681457dd5444df951ede839ff04.tar.bz2 android-node-v8-b070c996c9f08681457dd5444df951ede839ff04.zip |
n-api: change #ifdef to #if in node_api_types
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.
PR-URL: https://github.com/nodejs/node/pull/25635
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'src/node_api_types.h')
-rw-r--r-- | src/node_api_types.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_api_types.h b/src/node_api_types.h index d740bb9358..1c9a2b8aa2 100644 --- a/src/node_api_types.h +++ b/src/node_api_types.h @@ -10,7 +10,7 @@ typedef struct napi_async_work__* napi_async_work; typedef struct napi_threadsafe_function__* napi_threadsafe_function; #endif // NAPI_VERSION >= 4 -#ifdef NAPI_VERSION >= 4 +#if NAPI_VERSION >= 4 typedef enum { napi_tsfn_release, napi_tsfn_abort @@ -27,7 +27,7 @@ typedef void (*napi_async_execute_callback)(napi_env env, typedef void (*napi_async_complete_callback)(napi_env env, napi_status status, void* data); -#ifdef NAPI_VERSION >= 4 +#if NAPI_VERSION >= 4 typedef void (*napi_threadsafe_function_call_js)(napi_env env, napi_value js_callback, void* context, |