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