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