summaryrefslogtreecommitdiff
path: root/src/node_api_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_api_types.h')
-rw-r--r--src/node_api_types.h4
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,