We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed80a90 commit 66adc82Copy full SHA for 66adc82
1 file changed
quickjs.h
@@ -68,7 +68,7 @@ extern "C" {
68
# define JS_EXTERN /* nothing */
69
# endif
70
#else
71
-# ifdef QUICKJS_NG_CC_GNULIKE
+# if defined(BUILDING_QJS_SHARED) && defined(QUICKJS_NG_CC_GNULIKE)
72
# define JS_EXTERN __attribute__((visibility("default")))
73
# else
74
@@ -109,7 +109,7 @@ extern "C" {
109
# define JS_MODULE_EXTERN __declspec(dllimport)
110
111
112
+# if defined(QUICKJS_NG_MODULE_BUILD) && defined(QUICKJS_NG_CC_GNULIKE)
113
# define JS_MODULE_EXTERN __attribute__((visibility("default")))
114
115
# define JS_MODULE_EXTERN /* nothing */
0 commit comments