diff --git a/tiny_obj_loader.h b/tiny_obj_loader.h index d0a7886..c77ffc8 100644 --- a/tiny_obj_loader.h +++ b/tiny_obj_loader.h @@ -252,7 +252,7 @@ struct obj_shape { // See // http://stackoverflow.com/questions/6089231/getting-std-ifstream-to-handle-lf-cr-and-crlf -std::istream &safeGetline(std::istream &is, std::string &t) { +static std::istream &safeGetline(std::istream &is, std::string &t) { t.clear(); // The characters in the stream are read one-by-one using a std::streambuf.