From 4d19411acdde789a29cde137b8db897c64ec3c9f Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Mon, 16 Jan 2017 02:58:05 -0800 Subject: [PATCH] makefile --- stb_easy_font.h | 2 +- stb_leakcheck.h | 4 ++-- stb_tilemap_editor.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/stb_easy_font.h b/stb_easy_font.h index 579dec0..fc84fc5 100644 --- a/stb_easy_font.h +++ b/stb_easy_font.h @@ -109,7 +109,7 @@ void print_string(float x, float y, char *text, float r, float g, float b) #include #include -struct { +struct stb_easy_font_info_struct { unsigned char advance; unsigned char h_seg; unsigned char v_seg; diff --git a/stb_leakcheck.h b/stb_leakcheck.h index 6e50b22..42c0770 100644 --- a/stb_leakcheck.h +++ b/stb_leakcheck.h @@ -95,14 +95,14 @@ void stb_leakcheck_dumpmem(void) stb_leakcheck_malloc_info *mi = mi_head; while (mi) { if ((ptrdiff_t) mi->size >= 0) - printf("LEAKED: %s (%4d): %8z bytes at %p\n", mi->file, mi->line, mi->size, mi+1); + printf("LEAKED: %s (%4d): %8d bytes at %p\n", mi->file, mi->line, (int) mi->size, mi+1); mi = mi->next; } #ifdef STB_LEAKCHECK_SHOWALL mi = mi_head; while (mi) { if ((ptrdiff_t) mi->size < 0) - printf("FREED : %s (%4d): %8z bytes at %p\n", mi->file, mi->line, ~mi->size, mi+1); + printf("FREED : %s (%4d): %8d bytes at %p\n", mi->file, mi->line, (int) ~mi->size, mi+1); mi = mi->next; } #endif diff --git a/stb_tilemap_editor.h b/stb_tilemap_editor.h index cc66dd5..f16f7b3 100644 --- a/stb_tilemap_editor.h +++ b/stb_tilemap_editor.h @@ -3356,7 +3356,7 @@ static void stbte__toolbar(stbte_tilemap *tm, int x0, int y0, int w, int h) #define STBTE__TEXTCOLOR(n) stbte__color_table[n][STBTE__text][STBTE__idle] -static int stbte__info_value(char *label, int x, int y, int val, int digits, int id) +static int stbte__info_value(const char *label, int x, int y, int val, int digits, int id) { if (stbte__ui.event == STBTE__paint) { int off = 9-stbte__get_char_width(label[0]);