Skip to content

Commit

Permalink
lib: Include compiler.h as early as is possible in the build
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
donaldsharp committed Oct 4, 2018
1 parent 53aa82d commit ab67a5f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/zebra.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit ab67a5f

Please sign in to comment.