Scine::Core  3.0.0
Module management and core interface definitions
 All Classes Files Functions Variables Typedefs Pages
ExportControl.h
Go to the documentation of this file.
1 
7 #ifndef CORE_EXPORTCONTROL_H_
8 #define CORE_EXPORTCONTROL_H_
9 
10 // This logic was borrowed (then namespaced) from the examples on the gcc wiki:
11 // https://gcc.gnu.org/wiki/Visibility
12 
13 #if defined _WIN32 || defined __CYGWIN__
14 # ifdef __GNUC__
15 # define CORE_EXPORT __attribute__((dllexport))
16 # else
17 # define CORE_EXPORT __declspec(dllexport)
18 # endif
19 #else
20 # define CORE_EXPORT __attribute__((visibility("default")))
21 #endif
22 
23 #endif /* CORE_EXPORTCONTROL_H_ */