aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/unit/29 guessed linker dependencies/lib/lib.c
blob: 1a8f94ddb18c2f798a1170642aec600835230483 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#if defined _WIN32
  #define DLL_PUBLIC __declspec(dllexport)
#else
  #if defined __GNUC__
    #define DLL_PUBLIC __attribute__ ((visibility("default")))
  #else
    #pragma message ("Compiler does not support symbol visibility.")
    #define DLL_PUBLIC
  #endif
#endif

void DLL_PUBLIC liba_func() {
}

#ifdef MORE_EXPORTS

void DLL_PUBLIC libb_func() {
}

#endif