diff --git a/common/util.h b/common/util.h index 79dbba6451b..198fcd61ef7 100644 --- a/common/util.h +++ b/common/util.h @@ -26,18 +26,17 @@ #include "common/str.h" #include "common/array.h" -#if defined (__INNOTEK_LIBC__) || (defined (__amigaos4__) && defined(__NEWLIB__)) +#ifdef MIN #undef MIN +#endif + +#ifdef MAX #undef MAX #endif template inline T ABS (T x) { return (x>=0) ? x : -x; } -#if !defined(MIN) template inline T MIN (T a, T b) { return (a inline T MAX (T a, T b) { return (a>b) ? a : b; } -#endif /** * Template method which swaps the vaulues of its two parameters.