use flexible structure member from C99

This commit is contained in:
takase1121
2022-11-14 22:00:40 +08:00
parent 5cabc68ccb
commit 4457f26502
+1 -1
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) {