diff options
author | Stef Walter <stef@thewalter.net> | 2004-04-03 22:13:01 +0000 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2004-04-03 22:13:01 +0000 |
commit | bec23685136f78a24a78a6d8840d3865ffbccea9 (patch) | |
tree | 1453e0c5f87bb689a3df9c8e524d05d65bcca657 /src/usuals.h | |
parent | 3eca787a2b83ff8cf60d2be9e588d4a558b85a85 (diff) |
Unix porting.
Diffstat (limited to 'src/usuals.h')
-rw-r--r-- | src/usuals.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/usuals.h b/src/usuals.h index 699adb3..038e8f9 100644 --- a/src/usuals.h +++ b/src/usuals.h @@ -64,4 +64,12 @@ #define INTERSECTS(b1, e1, b2, e2) \ ((b1) < (e2) && (e1) > (b2)) +#ifndef max +#define max(a,b) (((a) > (b)) ? (a) : (b)) +#endif + +#ifndef min +#define min(a,b) (((a) < (b)) ? (a) : (b)) +#endif + #endif /* __USUALS_H__ */ |