From 3775927e4030cc42d8861b9a66062b15e0a217e6 Mon Sep 17 00:00:00 2001 From: Nic Barker Date: Wed, 25 Sep 2024 13:43:23 +1200 Subject: [PATCH] Replace const structs with macros to appease GCC --- clay.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/clay.h b/clay.h index b098e98..d282065 100644 --- a/clay.h +++ b/clay.h @@ -2433,11 +2433,11 @@ inline Clay_ScrollElementConfig * Clay__StoreScrollElementConfig(Clay_ScrollElem inline Clay_BorderElementConfig * Clay__StoreBorderElementConfig(Clay_BorderElementConfig config) { return Clay__BorderElementConfigArray_Add(&Clay__borderElementConfigs, config); } #pragma region DebugTools -const Clay_Color CLAY__DEBUGVIEW_COLOR_1 = (Clay_Color) {58, 56, 52, 255}; -const Clay_Color CLAY__DEBUGVIEW_COLOR_2 = (Clay_Color) {62, 60, 58, 255}; -const Clay_Color CLAY__DEBUGVIEW_COLOR_3 = (Clay_Color) {141, 133, 135, 255}; -const Clay_Color CLAY__DEBUGVIEW_COLOR_4 = (Clay_Color) {238, 226, 231, 255}; -const Clay_Color CLAY__DEBUGVIEW_COLOR_SELECTED_ROW = (Clay_Color) {102, 80, 78, 255}; +#define CLAY__DEBUGVIEW_COLOR_1 (Clay_Color) {58, 56, 52, 255} +#define CLAY__DEBUGVIEW_COLOR_2 (Clay_Color) {62, 60, 58, 255} +#define CLAY__DEBUGVIEW_COLOR_3 (Clay_Color) {141, 133, 135, 255} +#define CLAY__DEBUGVIEW_COLOR_4 (Clay_Color) {238, 226, 231, 255} +#define CLAY__DEBUGVIEW_COLOR_SELECTED_ROW (Clay_Color) {102, 80, 78, 255} const int CLAY__DEBUGVIEW_ROW_HEIGHT = 30; const int CLAY__DEBUGVIEW_OUTER_PADDING = 10; const int CLAY__DEBUGVIEW_INDENT_WIDTH = 16;