6 #ifndef IFM3D_DEVICE_EXPORT_HPP
7 #define IFM3D_DEVICE_EXPORT_HPP
9 #if defined(IFM3D_DEVICE_STATIC_LIB)
10 # define IFM3D_DEVICE_EXPORT
12 # if defined(_MSC_VER)
13 # ifdef IFM3D_DEVICE_DLL_BUILD
14 # define IFM3D_DEVICE_EXPORT __declspec(dllexport)
16 # define IFM3D_DEVICE_EXPORT __declspec(dllimport)
19 # define IFM3D_DEVICE_EXPORT __attribute__((visibility("default")))
23 #if defined(__GNUC__) || defined(__clang__)
24 # define IFM3D_DEVICE_DEPRECATED __attribute__((deprecated))
25 #elif defined(_MSC_VER)
26 # define IFM3D_DEVICE_DEPRECATED __declspec(deprecated)
28 # define IFM3D_DEVICE_DEPRECATED
31 #if defined(__GNUC__) || defined(__clang__)
32 # define IFM3D_DEVICE_LOCAL __attribute__((visibility("hidden")))
34 # define IFM3D_DEVICE_LOCAL