fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / external / cppunit / rtti.patch.0
blob38d2e6a909c989b0ee40cea884c7225e0c4769a0
1 --- include/cppunit/config/CppUnitApi.h
2 +++ include/cppunit/config/CppUnitApi.h
3 @@ -20,6 +20,12 @@
4  #define CPPUNIT_NEED_DLL_DECL 1
5  #endif
6  
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
13  #endif