summaryrefslogtreecommitdiffstats
path: root/external/cppunit/rtti.patch.0
blob: 38d2e6a909c989b0ee40cea884c7225e0c4769a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- include/cppunit/config/CppUnitApi.h
+++ include/cppunit/config/CppUnitApi.h
@@ -20,6 +20,12 @@
 #define CPPUNIT_NEED_DLL_DECL 1
 #endif
 
+#elif defined __GNUC__ //TODO: actually only works for modern enough GCC
+
+#define CPPUNIT_API __attribute__ ((visibility("default")))
+#undef CPPUNIT_NEED_DLL_DECL
+#define CPPUNIT_NEED_DLL_DECL 0
+
 #endif