From 06017d23f55cc999eb9bb8770b10e861d982501c Mon Sep 17 00:00:00 2001 From: Zhi Guan Date: Fri, 13 Oct 2023 20:46:19 +0800 Subject: [PATCH] Set default `_gmssl_export` --- include/gmssl/api.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/gmssl/api.h b/include/gmssl/api.h index d6f0d239f..d8fd184fb 100644 --- a/include/gmssl/api.h +++ b/include/gmssl/api.h @@ -13,10 +13,11 @@ #ifdef WIN32 #define _gmssl_export __declspec(dllexport) -#else +#elif defined(__GNUC__) // use -fvisibility=hidden to change the "default" behavior #define _gmssl_export __attribute__((visibility("default"))) +#else +#define _gmssl_export #endif - #endif