/[escript]/trunk/bruce/src/system_dep.h
ViewVC logotype

Annotation of /trunk/bruce/src/system_dep.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 743 - (hide annotations)
Sat Jun 24 11:44:55 2006 UTC (16 years, 9 months ago) by woo409
Original Path: branches/intelc_win32/bruce/src/system_dep.h
File MIME type: text/plain
File size: 948 byte(s)
+ Some additional files for the win32 port
  + The additional test meshes are because windows produces floating point numbers like this 12e+001 where are unix is 12e+01
  + nelix_kb_options.py is my notebooks config file. I've included it as an example of win32 compilation options
  + system_dep.h is there for win32 shared library function export/import macros and also to use the intel mathimf.h library since the standard MS VC++ math.h doesn't have all the necessary functions. NOTE this file must be included before all other headers to prevent inclusion of math.h
1 woo409 743 /**
2     \file system_dep.h
3     \ingroup Other
4     */
5     //
6     // @(#) system_dep.h
7     //
8    
9     #ifndef bruce_system_dep_h
10     #define bruce_system_dep_h
11     #ifdef _WIN32
12    
13     #ifdef __INTEL_COMPILER
14     // The Intel compiler on windows has an "improved" math library compared to the usual Visual C++ one
15     // In particular it has a acosh and other similar functions which aren't implemented in Visual C++ math.h
16     // Note you will get a compile time error if any other header (including system ones) includes math.h whilst mathimf.h
17     // has been included. As a result system_dep.h must be included FIRST at all times (this prevents math.h from being included).
18     #include <mathimf.h>
19     #else
20     #include <math.h>
21     #endif
22    
23     # ifndef INTERFACE_STATIC_LIB
24     # ifdef BRUCE_EXPORTS
25     # define BRUCE_DLL_API __declspec(dllexport)
26     # else
27     # define BRUCE_DLL_API __declspec(dllimport)
28     # endif
29     # else
30     # define BRUCE_DLL_API
31     # endif
32    
33     #endif
34    
35     #endif

  ViewVC Help
Powered by ViewVC 1.1.26