Skip to content

Commit 270afde

Browse files
authored
Merge pull request #3129 from donaldsharp/early_4.0
lib: Include compiler.h as early as is possible in the build
2 parents bd027b7 + d9d402f commit 270afde

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)