blob: fee1d1efd87265ab4f4137c43731d09f4345de1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#if defined _WIN32 || defined __CYGWIN__
#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
#ifndef WORK
# error "Did not get shared only arguments"
#endif
#ifdef BREAK
# error "got static only C args, but shouldn't have"
#endif
int DLL_PUBLIC libfunc(void) {
return 3;
}
|