/home/coin/SVN-release/OS-1.0.0/OS/src/OSUtils/OSParameters.h

Go to the documentation of this file.
00001 
00017 // CoinFinite includes <cmath> (I think) which causes a problem 
00018 //#include<CoinFinite.hpp>
00019 
00020 //kipp fix up the infinity issue
00021 //kipp define OSINFINITY to COIN_DBL_MAX
00022 
00023 
00024 
00025 #ifndef OSPARAMETERS
00026 #define OSPARAMETERS
00027 
00028 #include "OSConfig.h"
00029 
00030 #ifdef HAVE_CMATH
00031 # include <cmath>
00032 #else
00033 # ifdef HAVE_MATH_H
00034 #  include <math.h>
00035 # else
00036 #  error "don't have header file for math"
00037 # endif
00038 #endif
00039 #ifdef HAVE_CFLOAT
00040 # include <cfloat>
00041 #else
00042 # ifdef HAVE_FLOAT_H
00043 #  include <float.h>
00044 # endif
00045 #endif
00046 //#include <limits.h>
00047 //#ifdef INFINITY //This is the definition in the ISO C99 standard.
00048 //      #define OSINFINITY INFINITY
00049 //#else
00050 //      #define OSINFINITY 1e20
00051 //#endif
00052 
00053 #define OSINFINITY 1e30
00054 #define OS_E_VALUE exp(1.0)
00055 #define OS_PI_VALUE 2*asin(1.0)
00056 
00057 
00058 #ifdef NAN 
00059         #define OSNAN NAN
00060 #elif defined NaN
00061         #define OSNAN NaN
00062 #elif defined nan
00063         #define OSNAN nan
00064 #else   
00065         #define OSNAN -883849830
00066 #endif
00067 
00068 #ifdef DBL_MAX
00069         #define OSDBL_MAX DBL_MAX
00070 #else
00071         #define OSDBL_MAX OSINFINITY
00072 #endif
00073 
00074 #ifdef INT_MAX
00075         #define OSINT_MAX INT_MAX
00076 #else
00077         #define OSINT_MAX 2147483647
00078 #endif
00079 
00080 #ifndef XSLT_LOCATION
00081         #define XSLT_LOCATION  OSSRCDIR;
00082 #endif
00083 
00084 #endif

Generated on Thu May 15 22:15:05 2008 by  doxygen 1.4.7