forked from whoozle/clunk
-
Notifications
You must be signed in to change notification settings - Fork 4
/
export_clunk.h
40 lines (35 loc) · 1.03 KB
/
export_clunk.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef CLUNK_EXPORT_H__
#define CLUNK_EXPORT_H__
/* Shared library support */
#ifdef _MSC_VER
# pragma warning(disable:4251) /* needs to have dll-interface used by client */
# pragma warning(disable:4275) /* non dll-interface struct */
# pragma warning(disable:4786) /* debug info exceedes 255 bytes */
# define DLLIMPORT __declspec(dllimport)
# define DLLEXPORT __declspec(dllexport)
# define DLLDLLLOCAL
# define DLLDLLPUBLIC
#else
# ifdef GCC_HASCLASSVISIBILITY
# define DLLIMPORT __attribute__ ((visibility("default")))
# define DLLEXPORT __attribute__ ((visibility("default")))
# define DLLDLLLOCAL __attribute__ ((visibility("hidden")))
# define DLLDLLPUBLIC __attribute__ ((visibility("default")))
# else
# define DLLIMPORT
# define DLLEXPORT
# define DLLDLLLOCAL
# define DLLDLLPUBLIC
# endif
#endif
#ifndef CLUNKAPI
# define CLUNKAPI DLLIMPORT
#endif
#ifndef CLUNKCAPI
# ifdef __cplusplus
# define CLUNKCAPI extern "C" CLUNKAPI
# else
# define CLUNKCAPI CLUNKAPI
# endif
#endif
#endif