diff options
Diffstat (limited to 'common/util.h')
-rw-r--r-- | common/util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/util.h b/common/util.h index 68c47a1fb5..0df4e54a59 100644 --- a/common/util.h +++ b/common/util.h @@ -24,8 +24,12 @@ #include "common/scummsys.h" template<typename T> inline T ABS (T x) { return (x>=0) ? x : -x; } +#if !defined(MIN) template<typename T> inline T MIN (T a, T b) { return (a<b) ? a : b; } +#endif +#if !defined(MAX) template<typename T> inline T MAX (T a, T b) { return (a>b) ? a : b; } +#endif /** * Template method which swaps the vaulues of its two parameters. |