diff options
Diffstat (limited to 'stdio-common/printf-parse.h')
-rw-r--r-- | stdio-common/printf-parse.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/stdio-common/printf-parse.h b/stdio-common/printf-parse.h index 86a9821b1f..8e3ea0af88 100644 --- a/stdio-common/printf-parse.h +++ b/stdio-common/printf-parse.h @@ -25,10 +25,14 @@ #define NDEBUG 1 #include <assert.h> +#ifndef MAX #define MAX(a,b) ({typeof(a) _a = (a); typeof(b) _b = (b); \ _a > _b ? _a : _b; }) +#endif +#ifndef MIN #define MIN(a,b) ({typeof(a) _a = (a); typeof(b) _b = (b); \ _a < _b ? _a : _b; }) +#endif struct printf_spec { |