Skip to content

Commit

Permalink
revert emscripten NAPI_EXTERN
Browse files Browse the repository at this point in the history
  • Loading branch information
toyobayashi committed Aug 15, 2023
1 parent c73ed1e commit 0d03b77
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
6 changes: 0 additions & 6 deletions src/js_native_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,9 @@
#ifdef _WIN32
#define NAPI_EXTERN __declspec(dllexport)
#elif defined(__wasm__)
#ifdef __EMSCRIPTEN__
#define NAPI_EXTERN \
__attribute__((visibility("default"))) \
__attribute__((__import_module__("env")))
#else
#define NAPI_EXTERN \
__attribute__((visibility("default"))) \
__attribute__((__import_module__("napi")))
#endif
#else
#define NAPI_EXTERN __attribute__((visibility("default")))
#endif
Expand Down
4 changes: 0 additions & 4 deletions src/node_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,9 @@
// Building native addon against node
#define NAPI_EXTERN __declspec(dllimport)
#elif defined(__wasm__)
#ifdef __EMSCRIPTEN__
#define NAPI_EXTERN __attribute__((__import_module__("env")))
#else
#define NAPI_EXTERN __attribute__((__import_module__("napi")))
#endif
#endif
#endif
#include "js_native_api.h"
#include "node_api_types.h"

Expand Down

0 comments on commit 0d03b77

Please sign in to comment.