escript  Revision_
system_dep.h
Go to the documentation of this file.
00001 
00002 /*****************************************************************************
00003 *
00004 * Copyright (c) 2003-2014 by University of Queensland
00005 * http://www.uq.edu.au
00006 *
00007 * Primary Business: Queensland, Australia
00008 * Licensed under the Open Software License version 3.0
00009 * http://www.opensource.org/licenses/osl-3.0.php
00010 *
00011 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
00012 * Development 2012-2013 by School of Earth Sciences
00013 * Development from 2014 by Centre for Geoscience Computing (GeoComp)
00014 *
00015 *****************************************************************************/
00016 
00017 
00022 /*
00023    @(#) system_dep.h
00024 */
00025 
00026 #ifndef dudley_system_dep_h
00027 #define dudley_system_dep_h
00028 
00029 #if defined(_WIN32) && defined(__INTEL_COMPILER)
00030 /*
00031  * The Intel compiler on windows has an "improved" math library compared to
00032  * the usual Visual C++ one. In particular it has acosh and other similar
00033  * functions which aren't implemented in Visual C++ math.h.
00034  * Note you will get a compile time error if any other header (including
00035  * system ones) includes math.h whilst mathimf.h has been included.
00036  * As a result system_dep.h must be included FIRST at all times (this
00037  * prevents math.h from being included).
00038  */
00039 #   include <mathimf.h>
00040 #else
00041 #   include <cmath>
00042 #endif
00043 
00044 #define DUDLEY_DLL_API
00045 
00046 #ifdef _WIN32
00047 
00048 #   ifndef DUDLEY_STATIC_LIB
00049 #      undef DUDLEY_DLL_API
00050 #      ifdef DUDLEY_EXPORTS
00051 #         define DUDLEY_DLL_API __declspec(dllexport)
00052 #      else
00053 #         define DUDLEY_DLL_API __declspec(dllimport)
00054 #      endif
00055 #   endif
00056 #endif
00057 
00058 #endif
00059