From 91c2d401113a148d474794fd79342f0a427f9145 Mon Sep 17 00:00:00 2001 From: jakcron Date: Sun, 24 Jun 2018 16:18:29 +0800 Subject: [PATCH] [fnd] Begin to deprecate some macros. --- lib/libfnd/include/fnd/types.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/libfnd/include/fnd/types.h b/lib/libfnd/include/fnd/types.h index 2eeb08a..123b9c7 100644 --- a/lib/libfnd/include/fnd/types.h +++ b/lib/libfnd/include/fnd/types.h @@ -6,8 +6,11 @@ typedef uint8_t byte_t; -#define MIN(x,y) ((x) <= (y)? (x) : (y)) -#define MAX(x,y) ((x) >= (y)? (x) : (y)) +#define _MIN(x,y) ((x) <= (y)? (x) : (y)) +#define _MAX(x,y) ((x) >= (y)? (x) : (y)) + +#define MIN(x,y) (_MIN(x,y)) +#define MAX(x,y) (_MAX(x,y)) static inline uint64_t align(uint64_t size, uint64_t align) {