/[escript]/branches/windows_from_1456_trunk_1580_merged_in/esysUtils/src/system_dep.h
ViewVC logotype

Annotation of /branches/windows_from_1456_trunk_1580_merged_in/esysUtils/src/system_dep.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1610 - (hide annotations)
Mon Jun 16 12:03:12 2008 UTC (14 years, 2 months ago) by phornby
File MIME type: text/plain
File size: 1685 byte(s)
To hell with it, just ask the developer to edit
system_dep.h if they want esysUtils to be shared.

Instructions are in these files (as comments).


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 esysutils_system_dep_h
25     #define esysutils_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 phornby 1610 // Un-comment this block if you want it dynamic
40     // and comment out the line immediately after the block.
41     //# ifndef INTERFACE_STATIC_LIB
42     //# ifdef ESYSUTILS_EXPORTS
43     //# define ESYSUTILS_DLL_API __declspec(dllexport)
44     //# else
45     //# define ESYSUTILS_DLL_API __declspec(dllimport)
46     //# endif
47     //# endif
48     # define ESYSUTILS_DLL_API
49 trankine 1462 # define THROW(ARG)
50     # define THROW_ANY // Stupid windows compilers complain about THROW()
51 woo409 743 #else
52 trankine 1462 # define ESYSUTILS_DLL_API
53     # define THROW(ARG) throw(ARG)
54     # define THROW_ANY throw()
55 woo409 743 #endif
56    
57    
58     #endif

  ViewVC Help
Powered by ViewVC 1.1.26