g2o
g2o_deprecated_types_slam3d_api.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Description: import/export macros for creating DLLS with Microsoft
3  * compiler. Any exported function needs to be declared with the
4  * appropriate G2O_XXXX_API macro. Also, there must be separate macros
5  * for each DLL (arrrrrgh!!!)
6  *
7  * 17 Jan 2012
8  * Email: pupilli@cs.bris.ac.uk
9  ****************************************************************************/
10 #ifndef G2O_DEPRECATED_TYPES_SLAM3D_API_H
11 #define G2O_DEPRECATED_TYPES_SLAM3D_API_H
12 
13 #include "g2o/config.h"
14 
15 #ifdef _MSC_VER
16 // We are using a Microsoft compiler:
17 #ifdef G2O_SHARED_LIBS
18 #ifdef deprecated_types_slam3d_EXPORTS
19 #define G2O_DEPRECATED_TYPES_SLAM3D_API __declspec(dllexport)
20 #else
21 #define G2O_DEPRECATED_TYPES_SLAM3D_API __declspec(dllimport)
22 #endif
23 #else
24 #define G2O_DEPRECATED_TYPES_SLAM3D_API
25 #endif
26 
27 #else
28 // Not Microsoft compiler so set empty definition:
29 #define G2O_DEPRECATED_TYPES_SLAM3D_API
30 #endif
31 
32 #endif // G2O_DEPRECATED_TYPES_SLAM3D_API_H