diff --git a/src/system/kernel/util/list.cpp b/src/system/kernel/util/list.cpp index 215a249d4e..12d65af44a 100644 --- a/src/system/kernel/util/list.cpp +++ b/src/system/kernel/util/list.cpp @@ -8,13 +8,17 @@ #include #include +#include + #define GET_ITEM(list, item) ({ BytePointer pointer((uint8*)item \ - list->offset); &pointer; }) #define GET_LINK(list, item) ({ BytePointer pointer((uint8*)item \ + list->offset); &pointer; }) +#if __GNUC__ > 2 STATIC_ASSERT(sizeof(DoublyLinkedListLink) == sizeof(list_link)); +#endif /** Initializes the list with a specified offset to the link