Go to the documentation of this file.
15 #ifndef SPINNAKER_CAMERA_DRIVER__VISIBILITY_CONTROL_HPP_
16 #define SPINNAKER_CAMERA_DRIVER__VISIBILITY_CONTROL_HPP_
20 #if defined(SPINNAKER_CAMERA_BUILDING_DLL) || defined(SPINNAKER_CAMERA_EXPORTS)
21 #define SPINNAKER_CAMERA_PUBLIC __declspec(dllexport)
22 #define SPINNAKER_CAMERA_LOCAL
23 #else // defined(SPINNAKER_CAMERA_BUILDING_DLL) || defined(SPINNAKER_CAMERA_EXPORTS)
24 #define SPINNAKER_CAMERA_PUBLIC __declspec(dllimport)
25 #define SPINNAKER_CAMERA_LOCAL
26 #endif // defined(SPINNAKER_CAMERA_BUILDING_DLL) || defined(SPINNAKER_CAMERA_EXPORTS)
27 #elif defined(__linux__)
28 #define SPINNAKER_CAMERA_PUBLIC __attribute__((visibility("default")))
29 #define SPINNAKER_CAMERA_LOCAL __attribute__((visibility("hidden")))
30 #elif defined(__APPLE__)
31 #define SPINNAKER_CAMERA_PUBLIC __attribute__((visibility("default")))
32 #define SPINNAKER_CAMERA_LOCAL __attribute__((visibility("hidden")))
33 #else // defined(_LINUX)
34 #error "Unsupported Build Configuration"
35 #endif // defined(_WINDOWS)
37 #endif // SPINNAKER_CAMERA_DRIVER__VISIBILITY_CONTROL_HPP_