/[escript]/release/3.4.2/pasowrap/src/system_dep.h
ViewVC logotype

Contents of /release/3.4.2/pasowrap/src/system_dep.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4919 - (show annotations)
Wed Apr 30 06:25:55 2014 UTC (6 years, 1 month ago) by jfenwick
File MIME type: text/plain
File size: 1607 byte(s)
Because we've got to!

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
18 /**
19 \file pasowrap/src/system_dep.h
20 \ingroup Other
21 */
22 /*
23 @(#) system_dep.h
24 */
25
26 #ifndef pasowrap_system_dep_h
27 #define pasowrap_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 PASOWRAP_DLL_API
45
46 #ifdef _WIN32
47
48 # ifndef PASOWRAP_STATIC_LIB
49 # undef PASOWRAP_DLL_API
50 # ifdef PASOWRAP_EXPORTS
51 # define PASOWRAP_DLL_API __declspec(dllexport)
52 # else
53 # define PASOWRAP_DLL_API __declspec(dllimport)
54 # endif
55 # endif
56 #endif
57
58 #endif
59

  ViewVC Help
Powered by ViewVC 1.1.26