diff options
Diffstat (limited to 'pkgtools/libnbcompat/files/nbcompat.h')
-rw-r--r-- | pkgtools/libnbcompat/files/nbcompat.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgtools/libnbcompat/files/nbcompat.h b/pkgtools/libnbcompat/files/nbcompat.h index dae010c2295..b88f91fafaa 100644 --- a/pkgtools/libnbcompat/files/nbcompat.h +++ b/pkgtools/libnbcompat/files/nbcompat.h @@ -94,9 +94,17 @@ struct { \ #define LIST_INIT(head) do { \ (head)->lh_first = NULL; \ } while (/*CONSTCOND*/0) +#endif +#if ! LIST_EMPTY #define LIST_EMPTY(head) ((head)->lh_first == NULL) +#endif + +#if ! LIST_FIRST #define LIST_FIRST(head) ((head)->lh_first) +#endif + +#if ! LIST_NEXT #define LIST_NEXT(elm, field) ((elm)->field.le_next) #endif |