diff options
Diffstat (limited to 'src/systemd/src/basic/list.h')
| -rw-r--r-- | src/systemd/src/basic/list.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/systemd/src/basic/list.h b/src/systemd/src/basic/list.h index c3771a17..7006c3e2 100644 --- a/src/systemd/src/basic/list.h +++ b/src/systemd/src/basic/list.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1+ */ #pragma once /*** @@ -182,3 +183,6 @@ for ((i) = (p)->name##_next ? (p)->name##_next : (head); \ (i) != (p); \ (i) = (i)->name##_next ? (i)->name##_next : (head)) + +#define LIST_IS_EMPTY(head) \ + (!(head)) |