test cases/common/75 custom subproject dir/custom_subproject_dir/B/b.c
raw| 1 | #include<stdlib.h> |
| 2 | char func_c(void); |
| 3 | |
| 4 | #if defined _WIN32 || defined __CYGWIN__ |
| 5 | #define DLL_PUBLIC __declspec(dllexport) |
| 6 | #else |
| 7 | #if defined __GNUC__ |
| 8 | #define DLL_PUBLIC __attribute__ ((visibility("default"))) |
| 9 | #else |
| 10 | #pragma message ("Compiler does not support symbol visibility.") |
| 11 | #define DLL_PUBLIC |
| 12 | #endif |
| 13 | #endif |
| 14 | |
| 15 | char DLL_PUBLIC func_b(void) { |
| 16 | if(func_c() != 'c') { |
| 17 | exit(3); |
| 18 | } |
| 19 | return 'b'; |
| 20 | } |