summaryrefslogtreecommitdiff
path: root/lib/zebra.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-10-03 12:27:57 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-10-04 07:23:52 -0400
commitab67a5ff88399c14d34ea427cbd4c36fb2854804 (patch)
treef155e1583fa745cc9d670de4acffb6b7a3b3d987 /lib/zebra.h
parent53aa82daaf32a6fa54f1e3d2d9f2b4ce3247ba0e (diff)
lib: Include compiler.h as early as is possible in the build
The compiler.h header provides us with some useful macro's that we are using in the system. We do not know exactly where the CPP_NOTICE and CPP_WARN macros are used but they can move around. Place this header early in the build then. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/zebra.h')
-rw-r--r--lib/zebra.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/zebra.h b/lib/zebra.h
index b12f6616ba..97b1e95312 100644
--- a/lib/zebra.h
+++ b/lib/zebra.h
@@ -380,6 +380,12 @@ struct in_pktinfo {
*/
#define ZEBRA_HEADER_MARKER 254
+/*
+ * The compiler.h header is used for anyone using the CPP_NOTICE
+ * since this is universally needed, let's add it to zebra.h
+ */
+#include "compiler.h"
+
/* Zebra route's types are defined in route_types.h */
#include "route_types.h"