From: Donald Sharp Date: Wed, 3 Oct 2018 16:27:57 +0000 (-0400) Subject: lib: Include compiler.h as early as is possible in the build X-Git-Tag: frr-5.0.2~4^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=bfa4f71496c473be0ad5d2c6f8f36954c29c95a5;p=matthieu%2Ffrr.git 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 --- diff --git a/lib/zebra.h b/lib/zebra.h index 98428eaab2..06448206be 100644 --- a/lib/zebra.h +++ b/lib/zebra.h @@ -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"