From: Daan De Meyer Date: Sat, 12 Apr 2025 14:50:36 +0000 (+0200) Subject: basic: Move macro.h include in list.h to the top of the file X-Git-Tag: v258-rc1~780^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d226b2f9a2d85f51c5e49b26a5379142139f7bc;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/basic/list.h b/src/basic/list.h index 10e69541d43..090bdc7b602 100644 --- a/src/basic/list.h +++ b/src/basic/list.h @@ -1,6 +1,8 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ #pragma once +#include "macro.h" + /* The head of the linked list. Use this in the structure that shall * contain the head of the linked list */ #define LIST_HEAD(t,name) \ @@ -203,7 +205,3 @@ free_func(elem); \ head; \ }) - -/* Now include "macro.h", because we want our definition of assert() which the macros above use. We include - * it down here instead of up top, since macro.h pulls in log.h which in turn needs our own definitions. */ -#include "macro.h"