diff --git a/Include/dsp/utils.h b/Include/dsp/utils.h index b2049a55..10f9cf20 100755 --- a/Include/dsp/utils.h +++ b/Include/dsp/utils.h @@ -40,9 +40,13 @@ extern "C" #define INDEX_MASK 0x0000003F -#define MIN(x,y) ((x) < (y) ? (x) : (y)) +#ifndef MIN + #define MIN(x,y) ((x) < (y) ? (x) : (y)) +#endif -#define MAX(x,y) ((x) > (y) ? (x) : (y)) +#ifndef MAX + #define MAX(x,y) ((x) > (y) ? (x) : (y)) +#endif #define SQ(x) ((x) * (x))