Loading [MathJax]/extensions/tex2jax.js
Go to the documentation of this file.toggle line numbers
15#ifndef SSC_INTERFACE__VISIBILITY_CONTROL_HPP_
16#define SSC_INTERFACE__VISIBILITY_CONTROL_HPP_
20 #if defined(SSC_INTERFACE_BUILDING_DLL) || defined(SSC_INTERFACE_EXPORTS)
21 #define SSC_INTERFACE_PUBLIC __declspec(dllexport)
22 #define SSC_INTERFACE_LOCAL
23 #else // defined(SSC_INTERFACE_BUILDING_DLL) || defined(SSC_INTERFACE_EXPORTS)
24 #define SSC_INTERFACE_PUBLIC __declspec(dllimport)
25 #define SSC_INTERFACE_LOCAL
26 #endif // defined(SSC_INTERFACE_BUILDING_DLL) || defined(SSC_INTERFACE_EXPORTS)
27#elif defined(__linux__)
28 #define SSC_INTERFACE_PUBLIC __attribute__((visibility("default")))
29 #define SSC_INTERFACE_LOCAL __attribute__((visibility("hidden")))
30#elif defined(__APPLE__)
31 #define SSC_INTERFACE_PUBLIC __attribute__((visibility("default")))
32 #define SSC_INTERFACE_LOCAL __attribute__((visibility("hidden")))
34 #error "Unsupported Build Configuration"
37#endif // SSC_INTERFACE__VISIBILITY_CONTROL_HPP_