diff --git a/lib/framework/macros.h b/lib/framework/macros.h index 18f8a8da7f5..08945d68824 100644 --- a/lib/framework/macros.h +++ b/lib/framework/macros.h @@ -23,8 +23,13 @@ #ifndef MACROS_H #define MACROS_H +#ifndef MIN #define MIN(a, b) (((a) < (b)) ? (a) : (b)) +#endif + +#ifndef MAX #define MAX(a, b) (((a) > (b)) ? (a) : (b)) +#endif #define ABSDIF(a,b) ((a)>(b) ? (a)-(b) : (b)-(a))