From c496ddd853b73400759e54065375bbafe1a8e4e9 Mon Sep 17 00:00:00 2001
From: Nic Barker <nic@nicbarker.com>
Date: Wed, 9 Oct 2024 19:34:06 +1300
Subject: [PATCH] gcc

---
 clay.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/clay.h b/clay.h
index d80db07..9e94fe7 100644
--- a/clay.h
+++ b/clay.h
@@ -85,7 +85,6 @@ static int CLAY__ELEMENT_DEFINITION_LATCH = 0;
 		++CLAY__ELEMENT_DEFINITION_LATCH, Clay__CloseElement() \
 	)
 
-
 // Publicly visible layout element macros
 #define CLAY__6_ARGS(a, b, c, d, e, f) a, b, c, d, e, f
 #define CLAY__5_ARGS(a, b, c, d, e) a, b, c, d, e
@@ -93,7 +92,7 @@ static int CLAY__ELEMENT_DEFINITION_LATCH = 0;
 #define CLAY__3_ARGS(a, b, c) a, b, c
 #define CLAY__2_ARGS(a, b) a, b
 #define CLAY__1_ARGS(a) a
-#define CLAY__0_ARGS() 0
+#define CLAY__0_ARGS() Clay__Noop()
 #define CLAY__ARGS_OVERRIDE(_0, _1, _2, _3, _4, _5, _6, NAME, ...) NAME
 
 // Publicly visible layout element macros -----------------------------------------------------
@@ -434,7 +433,7 @@ Clay_CustomElementConfig * Clay__StoreCustomElementConfig(Clay_CustomElementConf
 Clay_ScrollElementConfig * Clay__StoreScrollElementConfig(Clay_ScrollElementConfig config);
 Clay_BorderElementConfig * Clay__StoreBorderElementConfig(Clay_BorderElementConfig config);
 Clay_ElementId Clay__HashString(Clay_String key, uint32_t offset, uint32_t seed);
-uint32_t Clay__GetOpenLayoutElementId(void);
+void Clay__Noop();
 
 extern Clay_Color Clay__debugViewHighlightColor;
 extern uint32_t Clay__debugViewWidth;
@@ -472,6 +471,8 @@ extern uint32_t Clay__debugViewWidth;
 
 bool Clay__warningsEnabled = true;
 
+void Clay__Noop() {};
+
 Clay_String CLAY__SPACECHAR = CLAY__INIT(Clay_String) { .length = 1, .chars = " " };
 Clay_String CLAY__STRING_DEFAULT = CLAY__INIT(Clay_String) { .length = 0, .chars = "" };