visibility.h
Go to the documentation of this file.
1 #ifndef OPM_VERTEQ_VISIBILITY_INCLUDED
2 #define OPM_VERTEQ_VISIBILITY_INCLUDED
3 
26 #if defined (_WIN32)
27 # define SYMBOL_IS_EXPORTED __declspec (dllexport)
28 # define SYMBOL_IS_IMPORTED __declspec (dllimport)
29 # define SYMBOL_IS_LOCALDEF
30 #else
31 # if __GNUC__ >= 4
32 # define SYMBOL_IS_EXPORTED __attribute__ ((visibility ("default")))
33 # define SYMBOL_IS_IMPORTED __attribute__ ((visibility ("default")))
34 # define SYMBOL_IS_LOCALDEF __attribute__ ((visibility ("hidden")))
35 # else
36 # define SYMBOL_IS_EXPORTED
37 # define SYMBOL_IS_IMPORTED
38 # define SYMBOL_IS_LOCALDEF
39 # endif
40 #endif
41 
42 #endif /* OPM_VERTEQ_VISIBILITY_INCLUDED */