From 67cb19a0a874a28f4da9135307bf2c3a885d09af Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 18 Dec 2024 21:56:28 +0000 Subject: [PATCH] fix: Resolve MinGW build failure by fixing header dependencies Co-Authored-By: Matt Wong --- app/sheet/sheet_internal.h | 3 +++ app/sheet/ui_buffer.h | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/sheet/sheet_internal.h b/app/sheet/sheet_internal.h index b7377ab2..5a28f7c0 100644 --- a/app/sheet/sheet_internal.h +++ b/app/sheet/sheet_internal.h @@ -25,6 +25,9 @@ struct zsvsheet_display_dimensions { size_t footer_span; }; +// Forward declaration of zsv_index +struct zsv_index; + struct zsvsheet_buffer_info_internal { struct zsvsheet_ui_flags flags; struct zsv_index *index; diff --git a/app/sheet/ui_buffer.h b/app/sheet/ui_buffer.h index 95cd2607..ba2f31f1 100644 --- a/app/sheet/ui_buffer.h +++ b/app/sheet/ui_buffer.h @@ -4,7 +4,6 @@ #include #include #include -#include "sheet_internal.h" // Bit positions for flags #define INDEX_READY_BIT 0 @@ -35,6 +34,8 @@ struct zsvsheet_ui_flags { volatile atomic_uchar flags[2]; // Using 2 bytes to accommodate all bits }; +#include "sheet_internal.h" + // Buffer structure forward declaration struct zsvsheet_ui_buffer; typedef struct zsvsheet_ui_buffer *zsvsheet_ui_buffer_t;