kernel/util: fix gcc2 build

* Failed with parse error.

Change-Id: I67f5f80768ccc25069ac9c33e300347f835e8d83
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10669
Reviewed-by: waddlesplash <[email protected]>
Reviewed-by: Kacper Kasper <[email protected]>
This commit is contained in:
Kacper Kasper
2026-04-06 14:24:26 +00:00
parent de60809cee
commit 95142492b9
+4
View File
@@ -8,13 +8,17 @@
#include <util/DoublyLinkedList.h>
#include <BytePointer.h>
#include <debug.h>
#define GET_ITEM(list, item) ({ BytePointer<void> pointer((uint8*)item \
- list->offset); &pointer; })
#define GET_LINK(list, item) ({ BytePointer<list_link> pointer((uint8*)item \
+ list->offset); &pointer; })
#if __GNUC__ > 2
STATIC_ASSERT(sizeof(DoublyLinkedListLink<void*>) == sizeof(list_link));
#endif
/** Initializes the list with a specified offset to the link