From 1c25c34dec826de0e403cfcc40d2606c0b8f2796 Mon Sep 17 00:00:00 2001 From: artemp Date: Mon, 23 Jun 2014 16:59:30 +0100 Subject: [PATCH] no sure if 'rewind' is a standard - use fseek instead --- src/font_engine_freetype.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/font_engine_freetype.cpp b/src/font_engine_freetype.cpp index 9758d0c58..5dbf1bec9 100644 --- a/src/font_engine_freetype.cpp +++ b/src/font_engine_freetype.cpp @@ -142,9 +142,9 @@ bool freetype_engine::register_font_impl(std::string const& file_name, FT_Librar FT_StreamRec streamRec; memset(&args, 0, sizeof(args)); memset(&streamRec, 0, sizeof(streamRec)); - fseek (file , 0 , SEEK_END); + fseek(file, 0, SEEK_END); std::size_t file_size = ftell(file); - rewind(file); + fseek(file, 0, SEEK_SET); streamRec.base = 0; streamRec.pos = 0; streamRec.size = file_size;