Go to the documentation of this file. 17 #ifndef EUCLIDEAN_CLUSTER__VISIBILITY_CONTROL_HPP_ 18 #define EUCLIDEAN_CLUSTER__VISIBILITY_CONTROL_HPP_ 23 #if defined(EUCLIDEAN_CLUSTER_BUILDING_DLL) || defined(EUCLIDEAN_CLUSTER_EXPORTS) 24 #define EUCLIDEAN_CLUSTER_PUBLIC __declspec(dllexport) 25 #define EUCLIDEAN_CLUSTER_LOCAL 26 #else // defined(EUCLIDEAN_CLUSTER_BUILDING_DLL) || defined(EUCLIDEAN_CLUSTER_EXPORTS) 27 #define EUCLIDEAN_CLUSTER_PUBLIC __declspec(dllimport) 28 #define EUCLIDEAN_CLUSTER_LOCAL 29 #endif // defined(EUCLIDEAN_CLUSTER_BUILDING_DLL) || defined(EUCLIDEAN_CLUSTER_EXPORTS) 30 #elif defined(__linux__) 31 #define EUCLIDEAN_CLUSTER_PUBLIC __attribute__((visibility("default"))) 32 #define EUCLIDEAN_CLUSTER_LOCAL __attribute__((visibility("hidden"))) 33 #elif defined(__APPLE__) 34 #define EUCLIDEAN_CLUSTER_PUBLIC __attribute__((visibility("default"))) 35 #define EUCLIDEAN_CLUSTER_LOCAL __attribute__((visibility("hidden"))) 36 #else // defined(_LINUX) 37 #error "Unsupported Build Configuration" 38 #endif // defined(_WINDOWS) 40 #endif // EUCLIDEAN_CLUSTER__VISIBILITY_CONTROL_HPP_