]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: Include compiler.h as early as is possible in the build
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 3 Oct 2018 16:27:57 +0000 (12:27 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 4 Oct 2018 11:23:15 +0000 (07:23 -0400)
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>
lib/zebra.h

index 98428eaab237685d5e6872e801705ef9123a308b..06448206be3cd6d9edcbc4fa94e7a8eba27acbcd 100644 (file)
@@ -381,6 +381,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"