From a790e21d4e0b4571e8bbdd5404b2bb82363ae0e8 Mon Sep 17 00:00:00 2001 From: Nic Barker Date: Sat, 28 Sep 2024 21:56:40 +1200 Subject: [PATCH] fix bad ifdef --- clay.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clay.h b/clay.h index 5c334d51..7bc5e5da 100644 --- a/clay.h +++ b/clay.h @@ -455,9 +455,9 @@ extern uint32_t Clay__debugViewWidth; #ifdef __cplusplus #define CLAY__ALIGNMENT(type) alignof(type) #define CLAY__INIT(type) type -#elif +#else #define CLAY__INIT(type) (type) -#define CLAY__ALIGNMENT(type) (offsetof(struct { char c; type x; } a, a.x)) +#define CLAY__ALIGNMENT(type) (offsetof(struct { char c; type x; }, x)) #endif bool Clay__warningsEnabled = true;