]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: Include compiler.h as early as is possible in the build 3131/head
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:52 +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 b12f6616bae9d4c96f1b4ad290b676cfcbf79e8a..97b1e95312a7a55d7fca32b474a0fbe53693582c 100644 (file)
@@ -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"