From c2c445e45567b5940311f70dcaa74f9395ea66d6 Mon Sep 17 00:00:00 2001 From: Nic Barker Date: Sun, 12 Jan 2025 10:49:00 +1300 Subject: [PATCH] Fix broken ifdef on MSVC --- clay.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/clay.h b/clay.h index cd3fff9..cdd4a2c 100644 --- a/clay.h +++ b/clay.h @@ -399,7 +399,7 @@ CLAY__TYPEDEF(Clay_Border, struct { Clay_Color color; }); -CLAY__TYPEDEF(Clay_BorderElementConfig, struct { +struct Clay_BorderElementConfig { Clay_Border left; Clay_Border right; Clay_Border top; @@ -409,7 +409,8 @@ CLAY__TYPEDEF(Clay_BorderElementConfig, struct { #ifdef CLAY_EXTEND_CONFIG_BORDER CLAY_EXTEND_CONFIG_BORDER #endif -}); +}; +CLAY__TYPEDEF(Clay_BorderElementConfig, struct Clay_BorderElementConfig); CLAY__TYPEDEF(Clay_ElementConfigUnion, union { Clay_RectangleElementConfig *rectangleElementConfig;