ifm3d
frame_grabber_export.h
1 #ifndef IFM3D_FRAME_GRABBER_EXPORT_HPP
2 #define IFM3D_FRAME_GRABBER_EXPORT_HPP
3 
4 #if defined(IFM3D_FRAME_GRABBER_STATIC_LIB)
5 # define IFM3D_FRAME_GRABBER_EXPORT
6 #else
7 # if defined(_MSC_VER)
8 # ifdef IFM3D_FRAME_GRABBER_DLL_BUILD
9 # define IFM3D_FRAME_GRABBER_EXPORT __declspec(dllexport)
10 # else
11 # define IFM3D_FRAME_GRABBER_EXPORT __declspec(dllimport)
12 # endif
13 # else
14 # define IFM3D_FRAME_GRABBER_EXPORT __attribute__((visibility("default")))
15 # endif
16 #endif
17 
18 #if defined(__GNUC__) || defined(__clang__)
19 # define IFM3D_FRAME_GRABBER_DEPRECATED __attribute__((deprecated))
20 #elif defined(_MSC_VER)
21 # define IFM3D_FRAME_GRABBER_DEPRECATED __declspec(deprecated)
22 #else
23 # define IFM3D_FRAME_GRABEER_DEPRECATED
24 #endif
25 
26 #if defined(__GNUC__) || defined(__clang__)
27 # define IFM3D_FRAME_GRABBER_LOCAL __attribute__((visibility("hidden")))
28 #else
29 # define IFM3D_FRAME_GRABBER_LOCAL
30 #endif
31 
34 #endif /* IFM3D_FRAME_GRABBER_EXPORT_HPP */