diff options
author | Martin Mares <mj@ucw.cz> | 2002-11-13 08:47:19 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2002-11-13 08:47:19 +0000 |
commit | 47f18ac39a313cf213b43320557239c5d0855a11 (patch) | |
tree | fce89e5849e9c6e6c33f94a301001827faed04e5 /lib/birdlib.h | |
parent | 7d875e094bbbb9d4b234e31fe08f31510ac1d7d0 (diff) |
ABS should be a macro.
Diffstat (limited to 'lib/birdlib.h')
-rw-r--r-- | lib/birdlib.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 |