use flexible structure member from C99

This commit is contained in:
takase1121 2022-11-14 22:00:40 +08:00
parent 5cabc68ccb
commit 4457f26502
No known key found for this signature in database
GPG Key ID: 60EEFFC68EB3031B
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ typedef struct RenFont {
ERenFontHinting hinting; ERenFontHinting hinting;
unsigned char style; unsigned char style;
unsigned short underline_thickness; unsigned short underline_thickness;
char path[1]; char path[];
} RenFont; } RenFont;
static const char* utf8_to_codepoint(const char *p, unsigned *dst) { static const char* utf8_to_codepoint(const char *p, unsigned *dst) {