00001
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef OSPARAMETERS
00026 #define OSPARAMETERS
00027
00028 #include "OSConfig.h"
00029
00030
00031
00032 #ifdef HAVE_CMATH
00033 # include <cmath>
00034 #else
00035 # ifdef HAVE_MATH_H
00036 # include <math.h>
00037 # else
00038 # error "don't have header file for math"
00039 # endif
00040 #endif
00041 #ifdef HAVE_CFLOAT
00042 # include <cfloat>
00043 #else
00044 # ifdef HAVE_FLOAT_H
00045 # include <float.h>
00046 # endif
00047 #endif
00048 #ifdef HAVE_CIEEEFP
00049 # include <cieeefp>
00050 #else
00051 # ifdef HAVE_IEEEFP_H
00052 # include <ieeefp.h>
00053 # endif
00054 #endif
00055
00056 #ifdef HAVE_CSTRING
00057 # include <cstring>
00058 #else
00059 # ifdef HAVE_STRING_H
00060 # include <string.h>
00061 # else
00062 # error "don't have header file for string"
00063 # endif
00064 #endif
00065
00066
00067 #ifdef HAVE_CSTDLIB
00068 # include <cstdlib>
00069 #else
00070 # ifdef HAVE_STDLIB_H
00071 # include <stdlib.h>
00072 # endif
00073 #endif
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088 #define OS_E_VALUE exp(1.0)
00089 #define OS_PI_VALUE 2*asin(1.0)
00090
00091 #define OS_SCHEMA_VERSION "2.0"
00092
00097 #define OS_NEAR_EQUAL 1e-2
00098
00099 #ifdef NAN
00100 #define OSNAN NAN
00101 #elif defined NaN
00102 #define OSNAN NaN
00103 #elif defined nan
00104 #define OSNAN nan
00105 #else
00106 #define OSNAN -883849830
00107 #endif
00108
00109 #ifdef DBL_MAX
00110 #define OSDBL_MAX DBL_MAX
00111 #elif defined HUGE_VAL
00112
00113 #define OSDBL_MAX HUGE_VAL
00114 #else
00115 #define OSDBL_MAX 1e30
00116 #endif
00117
00118
00119 #ifdef INT_MAX
00120 #define OSINT_MAX INT_MAX
00121 #else
00122 #define OSINT_MAX 2147483647
00123 #endif
00124
00125 #ifndef XSLT_LOCATION
00126 #define XSLT_LOCATION OSSRCDIR;
00127 #endif
00128
00129 #endif