Main Page   Class Hierarchy   Compound List   File List   Compound Members  

valuesvc.h

00001 
00002 #ifndef _VALUES_H_
00003 
00004 #define _VALUES_H_
00005 
00006 #ifdef _MSWVC_
00007 
00008 #include <math.h>
00009 
00010 #include <float.h>
00011 
00012 
00013 
00014 #ifndef __cplusplus
00015 
00016 #error C++ compiler is required
00017 
00018 #endif
00019 
00020 
00021 
00022 #undef  max
00023 
00024 #define max(a,b) ((a) > (b) ? (a) : (b))
00025 
00026 
00027 
00028 #undef  min
00029 
00030 #define min(a,b) ((a) < (b) ? (a) : (b))
00031 
00032 
00033 
00034 #define M_PI            (3.1415926535897932384626433832795028841972)
00035 
00036 #define MAXDOUBLE DBL_MAX
00037 #define MAXLONG     0x7fffffff
00038 
00039 #else
00040 
00041 #if defined(__NetBSD__)
00042 
00043 #include <math.h>
00044 
00045 #include <float.h>
00046 
00047 #ifndef MAXDOUBLE
00048 #define MAXDOUBLE DBL_MAX
00049 #endif
00050 #ifndef MAXLONG
00051 #define MAXLONG     0x7fffffff
00052 #endif
00053 #else
00054 
00055 #include <values.h>
00056 
00057 #endif
00058 #endif
00059  
00060 
00061 #endif // _VALUES_H_
00062 
00063 
00064 
valuesvc.h Source File -- Thu Nov 28 21:24:56 2002 -- 28 Nov 2002 -- 1.2.18 -- -- . -- Main Page