Go to the documentation of this file. 17 #ifndef VELODYNE_DRIVER__VISIBILITY_CONTROL_HPP_ 18 #define VELODYNE_DRIVER__VISIBILITY_CONTROL_HPP_ 22 #if defined(VELODYNE_DRIVER_BUILDING_DLL) || defined(VELODYNE_DRIVER_EXPORTS) 23 #define VELODYNE_DRIVER_PUBLIC __declspec(dllexport) 24 #define VELODYNE_DRIVER_LOCAL 25 #else // defined(VELODYNE_DRIVER_BUILDING_DLL) || defined(VELODYNE_DRIVER_EXPORTS) 26 #define VELODYNE_DRIVER_PUBLIC __declspec(dllimport) 27 #define VELODYNE_DRIVER_LOCAL 28 #endif // defined(VELODYNE_DRIVER_BUILDING_DLL) || defined(VELODYNE_DRIVER_EXPORTS) 29 #elif defined(__linux__) 30 #define VELODYNE_DRIVER_PUBLIC __attribute__((visibility("default"))) 31 #define VELODYNE_DRIVER_LOCAL __attribute__((visibility("hidden"))) 32 #elif defined(__APPLE__) 33 #define VELODYNE_DRIVER_PUBLIC __attribute__((visibility("default"))) 34 #define VELODYNE_DRIVER_LOCAL __attribute__((visibility("hidden"))) 35 #else // defined(_LINUX) 36 #error "Unsupported Build Configuration" 37 #endif // defined(_WINDOWS) 39 #endif // VELODYNE_DRIVER__VISIBILITY_CONTROL_HPP_