Cantera  2.5.1
clib_defs.h
Go to the documentation of this file.
1 /**
2  * @file clib_defs.h
3  */
4 
5 // This file is part of Cantera. See License.txt in the top-level directory or
6 // at https://cantera.org/license.txt for license and copyright information.
7 
8 #ifndef CTC_DEFS_H
9 #define CTC_DEFS_H
10 
11 #include "cantera/base/config.h"
12 #include <stdlib.h>
13 
14 #ifdef _WIN32
15 // Windows (MSVC or MinGW)
16 # ifdef CANTERA_USE_INTERNAL
17 # define CANTERA_CAPI extern __declspec(dllexport)
18 # else
19 # define CANTERA_CAPI extern __declspec(dllimport)
20 # endif
21 #else
22 // Non-Windows platform
23 # ifdef CANTERA_USE_INTERNAL
24 # define CANTERA_CAPI extern
25 # else
26 # define CANTERA_CAPI
27 # endif
28 #endif
29 
30 // Values returned for error conditions
31 #ifndef ERR
32 # define ERR -999
33 #endif
34 
35 #ifndef DERR
36 # define DERR -999.999
37 #endif
38 
39 #endif