00001
00017
00018
00019
00020
00021
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
00047
00048
00049
00050
00051
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