1 --- include/cppunit/config/CppUnitApi.h
2 +++ include/cppunit/config/CppUnitApi.h
4 #define CPPUNIT_NEED_DLL_DECL 1
7 +#elif defined __GNUC__ //TODO: actually only works for modern enough GCC
9 +#define CPPUNIT_API __attribute__ ((visibility("default")))
10 +#undef CPPUNIT_NEED_DLL_DECL
11 +#define CPPUNIT_NEED_DLL_DECL 0