From c3c9b4eb2a5273c9af12d2b9c3895829ca1a2489 Mon Sep 17 00:00:00 2001 From: James Eggleton Date: Wed, 1 Nov 2023 20:11:42 +0000 Subject: [PATCH] Resolve compilation errors --- stb_dxt.h | 1 + stb_herringbone_wang_tile.h | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/stb_dxt.h b/stb_dxt.h index 6150a87f08..1a4ab2c935 100644 --- a/stb_dxt.h +++ b/stb_dxt.h @@ -83,6 +83,7 @@ STBDDEF void stb_compress_bc5_block(unsigned char *dest, const unsigned char *sr // #define STB_DXT_USE_ROUNDING_BIAS #include +#include // memcpy #if !defined(STBD_FABS) #include diff --git a/stb_herringbone_wang_tile.h b/stb_herringbone_wang_tile.h index 5517941f7a..568a27df06 100644 --- a/stb_herringbone_wang_tile.h +++ b/stb_herringbone_wang_tile.h @@ -366,10 +366,12 @@ STBHW_EXTERN const char *stbhw_get_last_error(void) // need to try to do more sophisticated parsing of edge color // markup or something. +typedef struct stbhw__process stbhw__process; + typedef void stbhw__process_rect(struct stbhw__process *p, int xpos, int ypos, int a, int b, int c, int d, int e, int f); -typedef struct stbhw__process +struct stbhw__process { stbhw_tileset *ts; stbhw_config *c; @@ -377,7 +379,7 @@ typedef struct stbhw__process stbhw__process_rect *process_v_rect; unsigned char *data; int stride,w,h; -} stbhw__process; +}; static void stbhw__process_h_row(stbhw__process *p, int xpos, int ypos,