Mercurial > hg > easaier-soundaccess
comparison system/System.h @ 190:61681a2bc1e6
keep MIN and MAX compatibility (VC and linux compilation)
author | lbajardsilogic |
---|---|
date | Tue, 27 Nov 2007 13:26:04 +0000 |
parents | 56c167f3648a |
children | be6d31baecb9 |
comparison
equal
deleted
inserted
replaced
189:6a31322cd9ed | 190:61681a2bc1e6 |
---|---|
27 #ifdef USE_VC | 27 #ifdef USE_VC |
28 #include <time.h> | 28 #include <time.h> |
29 #include <io.h> | 29 #include <io.h> |
30 #include <math.h> | 30 #include <math.h> |
31 #include <float.h> | 31 #include <float.h> |
32 | |
33 #ifndef MIN | |
34 #define MIN(x, y) min(x, y) | |
35 #endif | |
36 | |
37 #ifndef MAX | |
38 #define MAX(x, y) max(x, y) | |
39 #endif | |
40 | |
41 #ifndef ISNAN | |
42 #define ISNAN(x) isnan((x)) | |
43 #endif | |
44 | |
45 #ifndef ISINF | |
46 #define ISINF(x) isinf((x)) | |
47 #endif | |
32 | 48 |
33 typedef int WINBOOL; | 49 typedef int WINBOOL; |
34 | 50 |
35 typedef signed char int8_t; | 51 typedef signed char int8_t; |
36 typedef unsigned char uint8_t; | 52 typedef unsigned char uint8_t; |
195 | 211 |
196 #ifndef MAX | 212 #ifndef MAX |
197 #define MAX(x, y) std::max(x, y) | 213 #define MAX(x, y) std::max(x, y) |
198 #endif | 214 #endif |
199 | 215 |
200 #ifndef isnan | 216 #ifndef ISNAN |
201 #define isnan(x) std::isnan((x)) | 217 #define ISNAN(x) std::isnan((x)) |
202 #endif | 218 #endif |
203 | 219 |
204 #ifndef isinf | 220 #ifndef ISINF |
205 #define isinf(x) std::isinf((x)) | 221 #define ISINF(x) std::isinf((x)) |
206 #endif | 222 #endif |
207 | 223 |
208 #endif /* __GNUC__ */ | 224 #endif /* __GNUC__ */ |
209 | 225 |
210 enum ProcessStatus { ProcessRunning, ProcessNotRunning, UnknownProcessStatus }; | 226 enum ProcessStatus { ProcessRunning, ProcessNotRunning, UnknownProcessStatus }; |