From 47f18ac39a313cf213b43320557239c5d0855a11 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 13 Nov 2002 08:47:19 +0000 Subject: ABS should be a macro. --- lib/birdlib.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/birdlib.h b/lib/birdlib.h index fc27db9b..1904d666 100644 --- a/lib/birdlib.h +++ b/lib/birdlib.h @@ -19,6 +19,7 @@ #define MIN(a,b) (((a)<(b))?(a):(b)) #define MAX(a,b) (((a)>(b))?(a):(b)) +#define ABS(a) ((a)>=0 ? (a) : -(a)) #define ARRAY_SIZE(a) (sizeof(a)/sizeof(*(a))) #ifndef NULL -- cgit v1.2.3