1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Better Clang compatibility

This commit is contained in:
Pavel Tvrdik
2014-12-05 09:25:38 +01:00
committed by Ondrej Zajicek
parent 7d37bf79de
commit 85a3639d99
2 changed files with 9 additions and 8 deletions

View File

@@ -50,6 +50,14 @@ typedef struct list { /* In fact two overlayed nodes */
#define EMPTY_LIST(list) (!(list).head->next)
#ifndef _BIRD_LISTS_C_
#define LIST_INLINE static inline
#include "lib/lists.c"
#undef LIST_INLINE
#else /* _BIRD_LISTS_C_ */
#define LIST_INLINE
void add_tail(list *, node *);
void add_head(list *, node *);
void rem_node(node *);
@@ -57,13 +65,6 @@ void rem2_node(node *);
void add_tail_list(list *, list *);
void init_list(list *);
void insert_node(node *, node *);
#ifndef _BIRD_LISTS_C_
#define LIST_INLINE extern inline
#include "lib/lists.c"
#undef LIST_INLINE
#else
#define LIST_INLINE
#endif
#endif