Files
pkgsrc-ng/net/bird/patches/patch-lib_lists.h
2013-09-26 17:14:40 +02:00

32 lines
720 B
C

$NetBSD: patch-lib_lists.h,v 1.1 2012/06/29 12:37:45 joerg Exp $
--- lib/lists.h.orig 2012-06-25 12:34:50.000000000 +0000
+++ lib/lists.h
@@ -47,19 +47,19 @@ typedef struct list { /* In fact two o
#define EMPTY_LIST(list) (!(list).head->next)
+#ifndef _BIRD_LISTS_C_
+#define LIST_INLINE static inline
+#include "lib/lists.c"
+#undef LIST_INLINE
+#else
+#define LIST_INLINE
+
void add_tail(list *, node *);
void add_head(list *, node *);
void rem_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