Debian Codegraph @

test cases/linuxlike/8 subproject library install/subprojects/sublib/include/subdefs.h

raw
1 #ifndef SUBDEFS_H_
2 #define SUBDEFS_H_
3
4 #if defined _WIN32 || defined __CYGWIN__
5 #if defined BUILDING_SUB
6 #define DLL_PUBLIC __declspec(dllexport)
7 #else
8 #define DLL_PUBLIC __declspec(dllimport)
9 #endif
10 #else
11 #if defined __GNUC__
12 #define DLL_PUBLIC __attribute__ ((visibility("default")))
13 #else
14 #pragma message ("Compiler does not support symbol visibility.")
15 #define DLL_PUBLIC
16 #endif
17 #endif
18
19 int DLL_PUBLIC subfunc(void);
20
21 #endif