Update headers from nodejs/node tag v20.7.0 (#32)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
diff --git a/include/node_api.h b/include/node_api.h
index 0345468..27acc6a 100644
--- a/include/node_api.h
+++ b/include/node_api.h
@@ -30,7 +30,7 @@
typedef napi_value(NAPI_CDECL* napi_addon_register_func)(napi_env env,
napi_value exports);
-typedef int32_t(NAPI_CDECL* node_api_addon_get_api_version_func)();
+typedef int32_t(NAPI_CDECL* node_api_addon_get_api_version_func)(void);
// Used by deprecated registration method napi_module_register.
typedef struct napi_module {
@@ -66,7 +66,7 @@
#define NAPI_MODULE_INIT() \
EXTERN_C_START \
- NAPI_MODULE_EXPORT int32_t NODE_API_MODULE_GET_API_VERSION() { \
+ NAPI_MODULE_EXPORT int32_t NODE_API_MODULE_GET_API_VERSION(void) { \
return NAPI_VERSION; \
} \
NAPI_MODULE_EXPORT napi_value NAPI_MODULE_INITIALIZER(napi_env env, \