Skip to content

Commit 577d2b7

Browse files
Update headers from nodejs/node tag v20.7.0 (#32)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 186e04b commit 577d2b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/node_api.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ struct uv_loop_s; // Forward declaration.
3030

3131
typedef napi_value(NAPI_CDECL* napi_addon_register_func)(napi_env env,
3232
napi_value exports);
33-
typedef int32_t(NAPI_CDECL* node_api_addon_get_api_version_func)();
33+
typedef int32_t(NAPI_CDECL* node_api_addon_get_api_version_func)(void);
3434

3535
// Used by deprecated registration method napi_module_register.
3636
typedef struct napi_module {
@@ -66,7 +66,7 @@ typedef struct napi_module {
6666

6767
#define NAPI_MODULE_INIT() \
6868
EXTERN_C_START \
69-
NAPI_MODULE_EXPORT int32_t NODE_API_MODULE_GET_API_VERSION() { \
69+
NAPI_MODULE_EXPORT int32_t NODE_API_MODULE_GET_API_VERSION(void) { \
7070
return NAPI_VERSION; \
7171
} \
7272
NAPI_MODULE_EXPORT napi_value NAPI_MODULE_INITIALIZER(napi_env env, \

0 commit comments

Comments
 (0)