Skip to content

Commit

Permalink
fix: Add forward declarations to resolve MinGW build failure
Browse files Browse the repository at this point in the history
Co-Authored-By: Matt Wong <matt@liquidaty.com>
  • Loading branch information
devin-ai-integration[bot] and liquidaty committed Dec 18, 2024
1 parent fb4efca commit b884fd4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions app/sheet/sheet_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
#define ZSVSHEET_ROWNUM_HEADER "Row #"
#define ZSVSHEET_ROWNUM_HEADER_LEN strlen(ZSVSHEET_ROWNUM_HEADER)

// Forward declaration
struct zsvsheet_ui_flags;

enum zsvsheet_priv_status {
zsvsheet_priv_status_ok = 0,
zsvsheet_priv_status_memory,
Expand Down
8 changes: 6 additions & 2 deletions app/sheet/ui_buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
#include <stddef.h>
#include <stdatomic.h>
#include <pthread.h>
#include "sheet_internal.h"

// Forward declarations
struct zsv_index;
struct zsvsheet_input_dimensions;

// Bit positions for flags
#define INDEX_READY_BIT 0
Expand Down Expand Up @@ -38,7 +41,8 @@ struct zsvsheet_ui_flags {
// Buffer structure forward declaration
struct zsvsheet_ui_buffer;
typedef struct zsvsheet_ui_buffer *zsvsheet_ui_buffer_t;
struct zsvsheet_buffer_info_internal;

#include "sheet_internal.h"

// Row/column position structure
struct zsvsheet_rowcol {
Expand Down

0 comments on commit b884fd4

Please sign in to comment.