From d7cc080cb2321baabd5e409b50533dcf6aa729a2 Mon Sep 17 00:00:00 2001 From: toyobayashi Date: Thu, 14 Sep 2023 11:30:57 +0800 Subject: [PATCH] nodejs/node#49103 --- packages/emnapi/include/node_api.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/emnapi/include/node_api.h b/packages/emnapi/include/node_api.h index 640fc433..281a7676 100644 --- a/packages/emnapi/include/node_api.h +++ b/packages/emnapi/include/node_api.h @@ -40,7 +40,7 @@ struct uv_loop_s; // Forward declaration. 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 { @@ -84,7 +84,7 @@ typedef struct napi_module { #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, \