test cases/unit/29 guessed linker dependencies/lib/lib.c
raw| 1 | #if defined _WIN32 |
| 2 | #define DLL_PUBLIC __declspec(dllexport) |
| 3 | #else |
| 4 | #if defined __GNUC__ |
| 5 | #define DLL_PUBLIC __attribute__ ((visibility("default"))) |
| 6 | #else |
| 7 | #pragma message ("Compiler does not support symbol visibility.") |
| 8 | #define DLL_PUBLIC |
| 9 | #endif |
| 10 | #endif |
| 11 | |
| 12 | void DLL_PUBLIC liba_func() { |
| 13 | } |
| 14 | |
| 15 | #ifdef MORE_EXPORTS |
| 16 | |
| 17 | void DLL_PUBLIC libb_func() { |
| 18 | } |
| 19 | |
| 20 | #endif |