- Timestamp:
- Mar 14, 2011, 10:45:33 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/libc-0.6/src/emx/include/sys/param.h
r2992 r3682 202 202 #endif 203 203 204 #if defined (__cplusplus) && (__GNUC__ >= 2) 205 # define MIN(a,b) (((a)<?(b)) 204 /* 205 * minimum and maximum macros. Use available g++ tricks. 206 */ 207 #if defined(__cplusplus) && (__GNUC__ >= 2) && (__GNUC__ <= 3) 208 # define MIN(a, b) ( (a) <? (b) ) 209 # define MAX(a, b) ( (a) >? (b) ) 206 210 #else 207 # define MIN(a,b) (((a)<(b))?(a):(b)) 208 #endif 209 #if defined (__cplusplus) && (__GNUC__ >= 2) 210 # define MAX(a,b) (((a)>?(b)) 211 #else 212 # define MAX(a,b) (((a)>(b))?(a):(b)) 211 # define MIN(a, b) ( (a) < (b) ? (a) : (b) ) 212 # define MAX(a, b) ( (a) > (b) ? (a) : (b) ) 213 213 #endif 214 214
Note:
See TracChangeset
for help on using the changeset viewer.