summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/birdlib.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/birdlib.h b/lib/birdlib.h
index 9696f9d..3d235c9 100644
--- a/lib/birdlib.h
+++ b/lib/birdlib.h
@@ -15,6 +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)
+
/* Functions which don't return */
#define NORET __attribute__((noreturn))