From d9d402fcde099751bc4b722c72f2bcabe2fbf024 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 3 Oct 2018 12:27:57 -0400 Subject: [PATCH] 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 --- lib/zebra.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/zebra.h b/lib/zebra.h index ab5ff79d66..8a106e3803 100644 --- a/lib/zebra.h +++ b/lib/zebra.h @@ -379,6 +379,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" -- 2.39.5