mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
cc0748f509
Upcoming changes to node-gyp will turn on `-fvisibility=hidden` on macOS. Ensure that public symbols that are dlsym'd have default visibility. Refs: https://github.com/nodejs/node/pull/28647 Refs: https://github.com/nodejs/node-gyp/pull/1828 PR-URL: https://github.com/nodejs/node/pull/28717 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
11 lines
164 B
C
11 lines
164 B
C
#ifndef _WIN32
|
|
|
|
const char* dlopen_pong(void);
|
|
|
|
__attribute__((visibility("default")))
|
|
const char* dlopen_ping(void) {
|
|
return dlopen_pong();
|
|
}
|
|
|
|
#endif // _WIN32
|