Skip to content

Commit

Permalink
Set default _gmssl_export
Browse files Browse the repository at this point in the history
  • Loading branch information
guanzhi committed Oct 13, 2023
1 parent 326956b commit 06017d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/gmssl/api.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 06017d2

Please sign in to comment.