Safir SDK Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DoseCppExportDefs.h
Go to the documentation of this file.
1 /******************************************************************************
2 *
3 * Copyright Saab AB, 2008-2013 (http://safir.sourceforge.net)
4 *
5 * Created by: Lars Hagström / stlrha
6 *
7 *******************************************************************************
8 *
9 * This file is part of Safir SDK Core.
10 *
11 * Safir SDK Core is free software: you can redistribute it and/or modify
12 * it under the terms of version 3 of the GNU General Public License as
13 * published by the Free Software Foundation.
14 *
15 * Safir SDK Core is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with Safir SDK Core. If not, see <http://www.gnu.org/licenses/>.
22 *
23 ******************************************************************************/
24 
25 #ifndef _dose_cpp_export_defs_h
26 #define _dose_cpp_export_defs_h
27 
28 #if defined _MSC_VER
29  #ifdef DOSE_CPP_EXPORTS
30  #define DOSE_CPP_API __declspec(dllexport)
31  #else
32  #define DOSE_CPP_API __declspec(dllimport)
33  #ifndef NDEBUG
34  #pragma comment( lib, "dose_cppd.lib" )
35  #else
36  #pragma comment( lib, "dose_cpp.lib" )
37  #endif
38  #endif
39 #elif defined __GNUC__
40  #define DOSE_CPP_API
41  #define __cdecl
42 #endif
43 
44 #endif