File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ struct uv_loop_s; // Forward declaration.
4040
4141typedef 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.
4646typedef 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, \
You can’t perform that action at this time.
0 commit comments