Go to the documentation of this file. 17 #ifndef VELODYNE_NODES__VISIBILITY_CONTROL_HPP_ 18 #define VELODYNE_NODES__VISIBILITY_CONTROL_HPP_ 22 #if defined(VELODYNE_NODES_BUILDING_DLL) || defined(VELODYNE_NODES_EXPORTS) 23 #define VELODYNE_NODES_PUBLIC __declspec(dllexport) 24 #define VELODYNE_NODES_LOCAL 25 #else // defined(VELODYNE_NODES_BUILDING_DLL) || defined(VELODYNE_NODES_EXPORTS) 26 #define VELODYNE_NODES_PUBLIC __declspec(dllimport) 27 #define VELODYNE_NODES_LOCAL 28 #endif // defined(VELODYNE_NODES_BUILDING_DLL) || defined(VELODYNE_NODES_EXPORTS) 29 #elif defined(__linux__) 30 #define VELODYNE_NODES_PUBLIC __attribute__((visibility("default"))) 31 #define VELODYNE_NODES_LOCAL __attribute__((visibility("hidden"))) 32 #elif defined(__APPLE__) 33 #define VELODYNE_NODES_PUBLIC __attribute__((visibility("default"))) 34 #define VELODYNE_NODES_LOCAL __attribute__((visibility("hidden"))) 35 #else // defined(LINUX) 36 #error "Unsupported Build Configuration" 37 #endif // defined(WINDOWS) 39 #endif // VELODYNE_NODES__VISIBILITY_CONTROL_HPP_