Go to the documentation of this file. 17 #ifndef GEOMETRY__VISIBILITY_CONTROL_HPP_ 18 #define GEOMETRY__VISIBILITY_CONTROL_HPP_ 23 #if defined(GEOMETRY_BUILDING_DLL) || defined(GEOMETRY_EXPORTS) 24 #define GEOMETRY_PUBLIC __declspec(dllexport) 25 #define GEOMETRY_LOCAL 26 #else // defined(GEOMETRY_BUILDING_DLL) || defined(GEOMETRY_EXPORTS) 27 #define GEOMETRY_PUBLIC __declspec(dllimport) 28 #define GEOMETRY_LOCAL 29 #endif // defined(GEOMETRY_BUILDING_DLL) || defined(GEOMETRY_EXPORTS) 30 #elif defined(__linux__) 31 #define GEOMETRY_PUBLIC __attribute__((visibility("default"))) 32 #define GEOMETRY_LOCAL __attribute__((visibility("hidden"))) 33 #elif defined(__APPLE__) 34 #define GEOMETRY_PUBLIC __attribute__((visibility("default"))) 35 #define GEOMETRY_LOCAL __attribute__((visibility("hidden"))) 37 #define GEOMETRY_PUBLIC __attribute__((visibility("default"))) 38 #define GEOMETRY_LOCAL __attribute__((visibility("hidden"))) 39 #else // defined(__linux__) 40 #error "Unsupported Build Configuration" 41 #endif // defined(__WIN32) 42 #endif // GEOMETRY__VISIBILITY_CONTROL_HPP_