escript  Revision_4925
finley/src/CPPAdapter/system_dep.h
Go to the documentation of this file.
1 
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2014 by University of Queensland
5 * http://www.uq.edu.au
6 *
7 * Primary Business: Queensland, Australia
8 * Licensed under the Open Software License version 3.0
9 * http://www.opensource.org/licenses/osl-3.0.php
10 *
11 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 * Development 2012-2013 by School of Earth Sciences
13 * Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 *
15 *****************************************************************************/
16 
17 
22 /*
23  @(#) system_dep.h
24 */
25 
26 #ifndef finley_system_dep_h
27 #define finley_system_dep_h
28 
29 #if defined(_WIN32) && defined(__INTEL_COMPILER)
30 /*
31  * The Intel compiler on windows has an "improved" math library compared to
32  * the usual Visual C++ one. In particular it has acosh and other similar
33  * functions which aren't implemented in Visual C++ math.h.
34  * Note you will get a compile time error if any other header (including
35  * system ones) includes math.h whilst mathimf.h has been included.
36  * As a result system_dep.h must be included FIRST at all times (this
37  * prevents math.h from being included).
38  */
39 # include <mathimf.h>
40 #else
41 # include <cmath>
42 #endif
43 
44 #define FINLEY_DLL_API
45 
46 #ifdef _WIN32
47 
48 # ifndef FINLEY_STATIC_LIB
49 # undef FINLEY_DLL_API
50 # ifdef FINLEY_EXPORTS
51 # define FINLEY_DLL_API __declspec(dllexport)
52 # else
53 # define FINLEY_DLL_API __declspec(dllimport)
54 # endif
55 # endif
56 #endif
57 
58 #endif
59