summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/birdlib.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/birdlib.h b/lib/birdlib.h
index f377a99..545ee1b 100644
--- a/lib/birdlib.h
+++ b/lib/birdlib.h
@@ -1,7 +1,7 @@
/*
* BIRD Library
*
- * (c) 1998 Martin Mares <mj@ucw.cz>
+ * (c) 1998--1999 Martin Mares <mj@ucw.cz>
*
* Can be freely distributed and used under the terms of the GNU GPL.
*/
@@ -15,9 +15,10 @@
#define SKIP_BACK(s, i, p) ((s *)((char *)p - OFFSETOF(s, i)))
#define ALIGN(s, a) (((s)+a-1)&~(a-1))
-/* Utility-Macros */
-#define MIN(a,b) ((a<b)?a:b)
-#define MAX(a,b) ((a>b)?a:b)
+/* Utility macros */
+
+#define MIN(a,b) (((a)<(b))?(a):(b))
+#define MAX(a,b) (((a)>(b))?(a):(b))
/* Functions which don't return */