| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4c93905 commit 48a1b93
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -30,7 +30,7 @@ struct uv_loop_s; // Forward declaration. | |||
| 30 | 30 | ||
| 31 | 31 | typedef napi_value(NAPI_CDECL* napi_addon_register_func)(napi_env env, | |
| 32 | 32 | 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); | ||
| 34 | 34 | ||
| 35 | 35 | // Used by deprecated registration method napi_module_register. | |
| 36 | 36 | typedef struct napi_module { | |
@@ -66,7 +66,7 @@ typedef struct napi_module { | |||
| 66 | 66 | ||
| 67 | 67 | #define NAPI_MODULE_INIT() \ | |
| 68 | 68 | 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) { \ | ||
| 70 | 70 | return NAPI_VERSION; \ | |
| 71 | 71 | } \ | |
| 72 | 72 | NAPI_MODULE_EXPORT napi_value NAPI_MODULE_INITIALIZER(napi_env env, \ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments