My Project: jas_dll.h Source File

My Project 2.0.16 |

jas_dll.h
1 #ifndef JAS_DLL_H
2 #define JAS_DLL_H
3
4 #if defined(JAS_DLL)
5 #if defined(_WIN32)
6 #if defined(JAS_BUILDING_DLL)
7 #define JAS_DLLEXPORT __declspec(dllexport)
8 #else
9 #define JAS_DLLEXPORT __declspec(dllimport)
10 #endif
11 #define JAS_DLLLOCAL
12 #elif defined(JAS_HAVE_VISIBILITY)
13 #if defined(JAS_BUILDING_DLL)
14 #define JAS_DLLEXPORT __attribute__ ((visibility("default")))
15 #define JAS_DLLLOCAL __attribute__ ((visibility("hidden")))
16 #else
17 #define JAS_DLLEXPORT
18 #define JAS_DLLLOCAL
19 #endif
20 #else
21 #define JAS_DLLEXPORT
22 #define JAS_DLLLOCAL
23 #endif
24 #else
25 #define JAS_DLLEXPORT
26 #define JAS_DLLLOCAL
27 #endif
28
29 #endif