/[escript]/trunk/finley/src/CPPAdapter/system_dep.h
ViewVC logotype

Annotation of /trunk/finley/src/CPPAdapter/system_dep.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1811 - (hide annotations)
Thu Sep 25 23:11:13 2008 UTC (10 years, 11 months ago) by ksteube
File MIME type: text/plain
File size: 1335 byte(s)
Copyright updated in all files

1 ksteube 1312
2     /*******************************************************
3 ksteube 1811 *
4     * Copyright (c) 2003-2008 by University of Queensland
5     * Earth Systems Science Computational Center (ESSCC)
6     * http://www.uq.edu.au/esscc
7     *
8     * Primary Business: Queensland, Australia
9     * Licensed under the Open Software License version 3.0
10     * http://www.opensource.org/licenses/osl-3.0.php
11     *
12     *******************************************************/
13 ksteube 1312
14 ksteube 1811
15 woo409 743 /**
16     \file system_dep.h
17     \ingroup Other
18     */
19     //
20     // @(#) system_dep.h
21     //
22    
23     #ifndef finley_system_dep_h
24     #define finley_system_dep_h
25    
26     #ifdef __INTEL_COMPILER
27     // The Intel compiler on windows has an "improved" math library compared to the usual Visual C++ one
28     // In particular it has a acosh and other similar functions which aren't implemented in Visual C++ math.h
29     // Note you will get a compile time error if any other header (including system ones) includes math.h whilst mathimf.h
30     // has been included. As a result system_dep.h must be included FIRST at all times (this prevents math.h from being included).
31 phornby 1628 # include <mathimf.h>
32 woo409 743 #else
33 phornby 1628 # include <math.h>
34 woo409 743 #endif
35    
36 woo409 779 #ifdef _WIN32
37    
38 phornby 1628 # ifndef INTERFACE_STATIC_LIB
39     # ifdef FINLEY_EXPORTS
40     # define FINLEY_DLL_API __declspec(dllexport)
41     # else
42     # define FINLEY_DLL_API __declspec(dllimport)
43     # endif
44     # endif
45 woo409 744
46 woo409 743 #else
47 phornby 1628 # define FINLEY_DLL_API
48 woo409 743 #endif
49    
50    
51     #endif

  ViewVC Help
Powered by ViewVC 1.1.26