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 |
woo409 |
744 |
|
12 |
woo409 |
743 |
#ifdef _WIN32 |
13 |
|
|
|
14 |
woo409 |
744 |
# ifdef __INTEL_COMPILER |
15 |
woo409 |
743 |
// The Intel compiler on windows has an "improved" math library compared to the usual Visual C++ one |
16 |
|
|
// In particular it has a acosh and other similar functions which aren't implemented in Visual C++ math.h |
17 |
|
|
// Note you will get a compile time error if any other header (including system ones) includes math.h whilst mathimf.h |
18 |
|
|
// has been included. As a result system_dep.h must be included FIRST at all times (this prevents math.h from being included). |
19 |
woo409 |
744 |
# include <mathimf.h> |
20 |
|
|
# else |
21 |
|
|
# include <math.h> |
22 |
|
|
# endif |
23 |
woo409 |
743 |
|
24 |
|
|
# ifndef INTERFACE_STATIC_LIB |
25 |
|
|
# ifdef BRUCE_EXPORTS |
26 |
|
|
# define BRUCE_DLL_API __declspec(dllexport) |
27 |
|
|
# else |
28 |
|
|
# define BRUCE_DLL_API __declspec(dllimport) |
29 |
|
|
# endif |
30 |
|
|
# endif |
31 |
|
|
|
32 |
woo409 |
744 |
#else |
33 |
|
|
# define BRUCE_DLL_API |
34 |
woo409 |
743 |
#endif |
35 |
|
|
|
36 |
|
|
#endif |