Skip to content

Commit 5d226b2

Browse files
committed
basic: Move macro.h include in list.h to the top of the file
Now that the circular dependency between log.h, macro.h and list.h is gone, we can move the include to the top.
1 parent 93a1f79 commit 5d226b2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/basic/list.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/* SPDX-License-Identifier: LGPL-2.1-or-later */
22
#pragma once
33

4+
#include "macro.h"
5+
46
/* The head of the linked list. Use this in the structure that shall
57
* contain the head of the linked list */
68
#define LIST_HEAD(t,name) \
@@ -203,7 +205,3 @@
203205
free_func(elem); \
204206
head; \
205207
})
206-
207-
/* Now include "macro.h", because we want our definition of assert() which the macros above use. We include
208-
* it down here instead of up top, since macro.h pulls in log.h which in turn needs our own definitions. */
209-
#include "macro.h"

0 commit comments

Comments
 (0)