diff options
Diffstat (limited to 'lib/birdlib.h')
-rw-r--r-- | lib/birdlib.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/birdlib.h b/lib/birdlib.h index c377a646..479f3d5c 100644 --- a/lib/birdlib.h +++ b/lib/birdlib.h @@ -19,8 +19,14 @@ /* Utility macros */ +#ifdef PARSER +#define _MIN(a,b) (((a)<(b))?(a):(b)) +#define _MAX(a,b) (((a)>(b))?(a):(b)) +#else #define MIN(a,b) (((a)<(b))?(a):(b)) #define MAX(a,b) (((a)>(b))?(a):(b)) +#endif + #define ABS(a) ((a)>=0 ? (a) : -(a)) #define ARRAY_SIZE(a) (sizeof(a)/sizeof(*(a))) |