Skip to content

Commit

Permalink
Resolve compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
James Eggleton committed Nov 1, 2023
1 parent 5ed904a commit c3c9b4e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions stb_dxt.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ STBDDEF void stb_compress_bc5_block(unsigned char *dest, const unsigned char *sr
// #define STB_DXT_USE_ROUNDING_BIAS

#include <stdlib.h>
#include <string.h> // memcpy

#if !defined(STBD_FABS)
#include <math.h>
Expand Down
6 changes: 4 additions & 2 deletions stb_herringbone_wang_tile.h
Original file line number Diff line number Diff line change
Expand Up @@ -366,18 +366,20 @@ 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;
stbhw__process_rect *process_h_rect;
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,
Expand Down

0 comments on commit c3c9b4e

Please sign in to comment.