From 1293d1d7d0c33d3925da11ceccdce4eb2e927a43 Mon Sep 17 00:00:00 2001 From: Jeremy Apthorp Date: Mon, 15 Oct 2018 15:15:58 -0700 Subject: [PATCH] fix: export napi symbols (#77) matches the change in node.h in 88b494191c, both are necessary because Chromium builds with symbols hidden by default --- src/js_native_api.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js_native_api.h b/src/js_native_api.h index 01707d78cca..1f8e0a5bb48 100644 --- a/src/js_native_api.h +++ b/src/js_native_api.h @@ -21,7 +21,7 @@ #ifdef _WIN32 #define NAPI_EXTERN __declspec(dllexport) #else - #define NAPI_EXTERN /* nothing */ + #define NAPI_EXTERN __attribute__((visibility("default"))) #endif #endif