/[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 1455 - (hide annotations)
Thu Feb 28 17:19:44 2008 UTC (11 years, 6 months ago) by phornby
File MIME type: text/plain
File size: 1369 byte(s)
Merge of branches/windows_from_1431_trunk.

Revamp of the exception system.
Fix unused vars and signed/unsigned comparisons.
defined a macro THROW(ARG) in the system_dep.h's to
deal with the expectations of declarations on different architectures.

Details in the logs of branches/windows_from_1431_trunk.

pre-merge snapshot of the trunk in tags/trunk_at_1452


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

  ViewVC Help
Powered by ViewVC 1.1.26