diff --git a/gfx/drivers_font_renderer/stb.c b/gfx/drivers_font_renderer/stb.c index cc544d8b16..d68cd69b65 100644 --- a/gfx/drivers_font_renderer/stb.c +++ b/gfx/drivers_font_renderer/stb.c @@ -17,6 +17,7 @@ #include #include +#include #include "../font_driver.h" #include "../../general.h" @@ -146,7 +147,7 @@ static void *font_renderer_stb_init(const char *font_path, float font_size) if (!self) goto error; - if (!read_file(font_path, (void**)&font_data, NULL)) + if (!retro_read_file(font_path, (void**)&font_data, NULL)) goto error; if (!font_renderer_stb_create_atlas(self, font_data, font_size, 512, 512))