Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
toyobayashi committed Sep 14, 2023
1 parent 9373df1 commit d7cc080
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/emnapi/include/node_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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, \
Expand Down

0 comments on commit d7cc080

Please sign in to comment.