Skip to content

Commit d2e6047

Browse files
committed
Fix C89 compilation errors
1 parent ed45455 commit d2e6047

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

nuklear.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6053,9 +6053,9 @@ nk_stbtt_free(void *ptr, void *user_data) {
60536053
#define STBTT_malloc(x,u) nk_stbtt_malloc(x,u)
60546054
#define STBTT_free(x,u) nk_stbtt_free(x,u)
60556055

6056-
#endif // STBTT_malloc
6056+
#endif /* STBTT_malloc */
60576057

6058-
#endif // NK_INCLUDE_FONT_BAKING
6058+
#endif /* NK_INCLUDE_FONT_BAKING */
60596059

60606060
#endif
60616061

@@ -16432,8 +16432,8 @@ nk_font_bake_pack(struct nk_font_baker *baker,
1643216432
}
1643316433
/* setup font baker from temporary memory */
1643416434
for (config_iter = config_list; config_iter; config_iter = config_iter->next) {
16435-
it = config_iter;
1643616435
struct stbtt_fontinfo *font_info = &baker->build[i++].info;
16436+
it = config_iter;
1643716437
font_info->userdata = alloc;
1643816438
do {if (!stbtt_InitFont(font_info, (const unsigned char*)it->ttf_blob, 0))
1643916439
return nk_false;

src/nuklear_font.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ nk_font_bake_pack(struct nk_font_baker *baker,
189189
}
190190
/* setup font baker from temporary memory */
191191
for (config_iter = config_list; config_iter; config_iter = config_iter->next) {
192-
it = config_iter;
193192
struct stbtt_fontinfo *font_info = &baker->build[i++].info;
193+
it = config_iter;
194194
font_info->userdata = alloc;
195195
do {if (!stbtt_InitFont(font_info, (const unsigned char*)it->ttf_blob, 0))
196196
return nk_false;

src/nuklear_internal.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,9 @@ nk_stbtt_free(void *ptr, void *user_data) {
346346
#define STBTT_malloc(x,u) nk_stbtt_malloc(x,u)
347347
#define STBTT_free(x,u) nk_stbtt_free(x,u)
348348

349-
#endif // STBTT_malloc
349+
#endif /* STBTT_malloc */
350350

351-
#endif // NK_INCLUDE_FONT_BAKING
351+
#endif /* NK_INCLUDE_FONT_BAKING */
352352

353353
#endif
354354

0 commit comments

Comments
 (0)