Rumba C++ SDK
Export.h
Go to the documentation of this file.
1 /*
2 
3  *
4  ***
5  *****
6  ********************* Mercenaries Engineering SARL
7  ***************** Copyright (C) 2018
8  *************
9  ********* http://www.mercenaries-engineering.com
10  ***********
11  **** ****
12  ** **
13 
14 */
15 #pragma once
16 
17 # if defined _WIN32 || defined __CYGWIN__
18 # define MAQUINA_DLL_IMPORT __declspec(dllimport)
19 # define MAQUINA_DLL_EXPORT __declspec(dllexport)
20 // Visual do not want 'extern' for exported template specialization
21 # define MAQUINA_EXTERN_TEMPLATE template
22 # else
23 # define MAQUINA_DLL_IMPORT __attribute__ ((visibility ("default")))
24 # define MAQUINA_DLL_EXPORT __attribute__ ((visibility ("default")))
25 # define MAQUINA_EXTERN_TEMPLATE extern template
26 # endif
27 
28 # ifdef kernel_EXPORTS // defined if we are building the MAQUINA kernel DLL (instead of using it)
29 # define MAQUINA_EXPORT MAQUINA_DLL_EXPORT
30 # else
31 # define MAQUINA_EXPORT MAQUINA_DLL_IMPORT
32 # endif // kernel_EXPORTS