Skip to content

Commit b16abf8

Browse files
res2kcdunn2001
authored andcommitted
Explicitly set JSON_API to 'default' visibility on clang & gcc
1 parent cd11212 commit b16abf8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/json/config.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
#if defined(_MSC_VER) || defined(__MINGW32__)
4949
#define JSON_API __declspec(dllexport)
5050
#define JSONCPP_DISABLE_DLL_INTERFACE_WARNING
51+
#elif defined(__GNUC__) || defined(__clang__)
52+
#define JSON_API __attribute__((visibility("default")))
5153
#endif // if defined(_MSC_VER)
5254
#elif defined(JSON_DLL)
5355
#if defined(_MSC_VER) || defined(__MINGW32__)

0 commit comments

Comments
 (0)