test cases/common/292 link early args/cpplib.h
raw| 1 | /* See http://gcc.gnu.org/wiki/Visibility#How_to_use_the_new_C.2B-.2B-_visibility_support */ |
| 2 | #if defined(_WIN32) || defined(__CYGWIN__) |
| 3 | #ifdef BUILDING_DLL |
| 4 | #define DLL_PUBLIC __declspec(dllexport) |
| 5 | #else |
| 6 | #define DLL_PUBLIC __declspec(dllimport) |
| 7 | #endif |
| 8 | #else |
| 9 | #define DLL_PUBLIC __attribute__ ((visibility ("default"))) |
| 10 | #endif |
| 11 | |
| 12 | int DLL_PUBLIC cppfunc_sym(void); |
| 13 | int DLL_PUBLIC cppfunc(void); |