g2o
g2o_stuff_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_STUFF_API_H
11 #define G2O_STUFF_API_H
12 
13 #include "g2o/config.h"
14 
15 #ifdef _MSC_VER
16 // We are using a Microsoft compiler:
17 
18 #ifdef G2O_SHARED_LIBS
19 #ifdef stuff_EXPORTS
20 #define G2O_STUFF_API __declspec(dllexport)
21 #else
22 #define G2O_STUFF_API __declspec(dllimport)
23 #endif
24 #else
25 #define G2O_STUFF_API
26 #endif
27 
28 #else
29 // Not Microsoft compiler so set empty definition:
30 #define G2O_STUFF_API
31 #endif
32 
33 #endif // G2O_STUFF_API_H