Go to the documentation of this file.
15 #ifndef MOTION_TESTING__VISIBILITY_CONTROL_HPP_
16 #define MOTION_TESTING__VISIBILITY_CONTROL_HPP_
19 #if defined(MOTION_TESTING_BUILDING_DLL) || defined(MOTION_TESTING_EXPORTS)
20 #define MOTION_TESTING_PUBLIC __declspec(dllexport)
21 #define MOTION_TESTING_LOCAL
22 #else // defined(MOTION_TESTING_BUILDING_DLL) || defined(MOTION_TESTING_EXPORTS)
23 #define MOTION_TESTING_PUBLIC __declspec(dllimport)
24 #define MOTION_TESTING_LOCAL
25 #endif // defined(MOTION_TESTING_BUILDING_DLL) || defined(MOTION_TESTING_EXPORTS)
26 #elif defined(__linux__)
27 #define MOTION_TESTING_PUBLIC __attribute__((visibility("default")))
28 #define MOTION_TESTING_LOCAL __attribute__((visibility("hidden")))
29 #elif defined(__APPLE__)
30 #define MOTION_TESTING_PUBLIC __attribute__((visibility("default")))
31 #define MOTION_TESTING_LOCAL __attribute__((visibility("hidden")))
32 #else // defined(_LINUX)
33 #error "Unsupported Build Configuration"
34 #endif // defined(_WINDOWS)
36 #endif // MOTION_TESTING__VISIBILITY_CONTROL_HPP_