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