summary refs log tree commit diff
path: root/zone.h
diff options
context:
space:
mode:
Diffstat (limited to 'zone.h')
-rw-r--r--zone.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/zone.h b/zone.h
index c42b6b1..d10ef6e 100644
--- a/zone.h
+++ b/zone.h
@@ -56,8 +56,7 @@ void *zn_realloc_align(Zone *z, void *ptr, ptrdiff_t oldsz, ptrdiff_t newsz, siz
 char *zn_strdup(Zone *z, const char *s);
 void *zn_zeroed(void *, size_t);
 
-#define alignof _Alignof
-#define zn_new(z, t) (t*)zn_zeroed(zn_alloc_align(z, sizeof(t), alignof(t)), sizeof(t))
+#define zn_new(z, t) (t*)zn_zeroed(zn_alloc_align(z, sizeof(t), _Alignof(t)), sizeof(t))
 
 #ifdef ZONE_IMPL