Only define MIN/MAX if needed MIN and MAX macros are defined on Linux at least by sys/param.h. Don't define them twice to avoid a warning.
T. Joseph Carter
5 years ago
1 changed file(s) with
2 addition(s)
and
0 deletion(s)
.
Raw diff
Collapse all
Expand all
+2
-0
inc/Common.h
less
more
16
16
17
17
#define NUM_SLOTS 8
18
18
19
#ifndef MIN
19
20
#define MAX(a,b) (((a) > (b)) ? (a) : (b))
20
21
#define MIN(a,b) (((a) < (b)) ? (a) : (b))
22
#endif
21
23
22
24
#define RAMWORKS // 8MB RamWorks III support
23
25