/[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 2898 - (hide annotations)
Mon Feb 1 01:23:46 2010 UTC (9 years, 7 months ago) by caltinay
File MIME type: text/plain
File size: 1414 byte(s)
Reverted the move of system_dep.h since it didn't solve the problem nicely.
Created a wrapper class for the needed functionality instead.

1 ksteube 1312
2     /*******************************************************
3 ksteube 1811 *
4 jfenwick 2881 * Copyright (c) 2003-2010 by University of Queensland
5 ksteube 1811 * 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 jfenwick 2519 \file finley/src/CPPAdapter/system_dep.h
17 woo409 743 \ingroup Other
18     */
19 caltinay 2895 /*
20     @(#) system_dep.h
21     */
22 woo409 743
23     #ifndef finley_system_dep_h
24     #define finley_system_dep_h
25    
26 phornby 2018 #if defined(_WIN32) && defined(__INTEL_COMPILER)
27 caltinay 2895 /*
28     * The Intel compiler on windows has an "improved" math library compared to
29     * the usual Visual C++ one. In particular it has acosh and other similar
30     * functions which aren't implemented in Visual C++ math.h.
31     * Note you will get a compile time error if any other header (including
32     * system ones) includes math.h whilst mathimf.h has been included.
33     * As a result system_dep.h must be included FIRST at all times (this
34     * prevents math.h from being included).
35     */
36 phornby 1628 # include <mathimf.h>
37 woo409 743 #else
38 phornby 1628 # include <math.h>
39 woo409 743 #endif
40    
41 phornby 2029 #define FINLEY_DLL_API
42    
43 woo409 779 #ifdef _WIN32
44    
45 phornby 2031 # ifndef FINLEY_STATIC_LIB
46 phornby 2030 # undef FINLEY_DLL_API
47 phornby 1628 # ifdef FINLEY_EXPORTS
48     # define FINLEY_DLL_API __declspec(dllexport)
49     # else
50     # define FINLEY_DLL_API __declspec(dllimport)
51     # endif
52     # endif
53 woo409 743 #endif
54    
55 caltinay 2895 #endif
56 woo409 743

  ViewVC Help
Powered by ViewVC 1.1.26