diff --git a/src/node_api.h b/src/node_api.h index 10a2c8ff30..bc457616f9 100644 --- a/src/node_api.h +++ b/src/node_api.h @@ -31,7 +31,7 @@ struct uv_loop_s; // Forward declaration. #define NAPI_EXTERN __declspec(dllexport) #endif #else - #define NAPI_EXTERN /* nothing */ + #define NAPI_EXTERN __attribute__((visibility("default"))) #endif #ifdef _WIN32