aboutsummaryrefslogtreecommitdiff
path: root/test cases/common/137 whole archive/mylib.h
blob: 79ce585ef1e6b432438dc53b1a4394d98fb22947 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

/* Both funcs here for simplicity. */

#if defined _WIN32 || defined __CYGWIN__
#if defined BUILDING_DLL
  #define DLL_PUBLIC __declspec(dllexport)
#else
  #define DLL_PUBLIC __declspec(dllimport)
#endif
#else
  #if defined __GNUC__
    #define DLL_PUBLIC __attribute__ ((visibility("default")))
  #else
    #pragma message ("Compiler does not support symbol visibility.")
    #define DLL_PUBLIC
  #endif
#endif

int DLL_PUBLIC func1(void);
int DLL_PUBLIC func2(void);