Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
src: use visibility("default") for exports on POSIX
Electron uses this because Chromium builds with symbols
hidden by default.

Refs: electron/node@88b4941
Refs: electron/node@1293d1d
  • Loading branch information
nornagon authored and addaleax committed Feb 2, 2019
commit 56b04ce046924f1196bd64287953f426a4b1b2b2
2 changes: 1 addition & 1 deletion src/js_native_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#ifdef _WIN32
#define NAPI_EXTERN __declspec(dllexport)
#else
#define NAPI_EXTERN /* nothing */
#define NODE_EXTERN __attribute__((visibility("default")))
Comment thread
addaleax marked this conversation as resolved.
Outdated
#endif
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/node.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# define NODE_EXTERN __declspec(dllimport)
# endif
#else
# define NODE_EXTERN /* nothing */
# define NODE_EXTERN __attribute__((visibility("default")))
#endif

#ifdef BUILDING_NODE_EXTENSION
Expand Down