Skip to content

Commit d9d402f

Browse files
committed
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>
1 parent bd027b7 commit d9d402f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/zebra.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,12 @@ struct in_pktinfo {
379379
*/
380380
#define ZEBRA_HEADER_MARKER 254
381381

382+
/*
383+
* The compiler.h header is used for anyone using the CPP_NOTICE
384+
* since this is universally needed, let's add it to zebra.h
385+
*/
386+
#include "compiler.h"
387+
382388
/* Zebra route's types are defined in route_types.h */
383389
#include "route_types.h"
384390

0 commit comments

Comments
 (0)