From 70dbe3c3defdbfa5084d7e1ac3709771bfbef2a4 Mon Sep 17 00:00:00 2001 From: thajohns Date: Sat, 9 May 2020 16:41:25 -0400 Subject: [PATCH] Turns out alignof already existed --- allocator_internal.h | 2 -- tree_alloc.c | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/allocator_internal.h b/allocator_internal.h index 3e87874..2e6278e 100644 --- a/allocator_internal.h +++ b/allocator_internal.h @@ -3,8 +3,6 @@ #include -#define alignof(x) offsetof(struct { char pad; x member; }, member) - // No enum because these need to be 1 byte const char RT_FREESPACE = 0; const char RT_TREE_NODE = 1; diff --git a/tree_alloc.c b/tree_alloc.c index e54d969..a80b427 100644 --- a/tree_alloc.c +++ b/tree_alloc.c @@ -1,5 +1,6 @@ #include +#include #include "allocator_internal.h"