Go to the documentation of this file.
17 #ifndef VOXEL_GRID__VISIBILITY_CONTROL_HPP_
18 #define VOXEL_GRID__VISIBILITY_CONTROL_HPP_
23 #if defined(VOXEL_GRID_BUILDING_DLL) || defined(VOXEL_GRID_EXPORTS)
24 #define VOXEL_GRID_PUBLIC __declspec(dllexport)
25 #define VOXEL_GRID_LOCAL
26 #else // defined(VOXEL_GRID_BUILDING_DLL) || defined(VOXEL_GRID_EXPORTS)
27 #define VOXEL_GRID_PUBLIC __declspec(dllimport)
28 #define VOXEL_GRID_LOCAL
29 #endif // defined(VOXEL_GRID_BUILDING_DLL) || defined(VOXEL_GRID_EXPORTS)
30 #elif defined(__linux__)
31 #define VOXEL_GRID_PUBLIC __attribute__((visibility("default")))
32 #define VOXEL_GRID_LOCAL __attribute__((visibility("hidden")))
33 #elif defined(__APPLE__)
34 #define VOXEL_GRID_PUBLIC __attribute__((visibility("default")))
35 #define VOXEL_GRID_LOCAL __attribute__((visibility("hidden")))
36 #else // defined(__linux__)
37 #error "Unsupported Build Configuration"
38 #endif // defined(__WIN32)
40 #endif // VOXEL_GRID__VISIBILITY_CONTROL_HPP_