Skip to content

Commit d7cc080

Browse files
committed
1 parent 9373df1 commit d7cc080

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/emnapi/include/node_api.h

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

4141
typedef napi_value(NAPI_CDECL* napi_addon_register_func)(napi_env env,
4242
napi_value exports);
43-
typedef int32_t(NAPI_CDECL* node_api_addon_get_api_version_func)();
43+
typedef int32_t(NAPI_CDECL* node_api_addon_get_api_version_func)(void);
4444

4545
// Used by deprecated registration method napi_module_register.
4646
typedef struct napi_module {
@@ -84,7 +84,7 @@ typedef struct napi_module {
8484

8585
#define NAPI_MODULE_INIT() \
8686
EXTERN_C_START \
87-
NAPI_MODULE_EXPORT int32_t NODE_API_MODULE_GET_API_VERSION() { \
87+
NAPI_MODULE_EXPORT int32_t NODE_API_MODULE_GET_API_VERSION(void) { \
8888
return NAPI_VERSION; \
8989
} \
9090
NAPI_MODULE_EXPORT napi_value NAPI_MODULE_INITIALIZER(napi_env env, \

0 commit comments

Comments
 (0)