This commit is contained in:
lucky 2016-03-27 00:56:16 -07:00
parent a14f0f8f89
commit 06a29dabb1

View file

@ -164,8 +164,8 @@ public:
std::stringbuf sbuf((const char*)fileData);
std::istream istream(&sbuf);
#else
FILE *file = fopen(fileName.c_str(), "r");
std::filebuf fileBuffer(file);
std::filebuf fileBuffer;
fileBuffer.open(fileName.c_str(), std::ios_base::in);
std::istream istream(&fileBuffer);
#endif