Skip to content

Commit

Permalink
sync Node-API headers from Node.js official repo (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
toyobayashi authored Apr 16, 2023
1 parent 838f5de commit 22b5393
Show file tree
Hide file tree
Showing 5 changed files with 571 additions and 509 deletions.
6 changes: 2 additions & 4 deletions packages/emnapi/include/emnapi_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
#define EMNAPI_INCLUDE_COMMON_H_

#ifdef __EMSCRIPTEN__
#define NAPI_EXTERN __attribute__((visibility("default"))) \
__attribute__((__import_module__("env")))
#define NAPI_EXTERN __attribute__((__import_module__("env")))

#define EMNAPI_EXTERN __attribute__((visibility("default"))) \
__attribute__((__import_module__("env")))
#define EMNAPI_EXTERN __attribute__((__import_module__("env")))
#else
#define NAPI_EXTERN __attribute__((__import_module__("napi")))

Expand Down
Loading

0 comments on commit 22b5393

Please sign in to comment.