Switched to the stdio FILE* API for handling streams to provide the expected behavior to Vorbis.

This commit is contained in:
Lukas Dürrenberger 2015-03-28 23:56:20 +01:00
parent 0076ea50db
commit 0b221921ed
2 changed files with 41 additions and 18 deletions

View file

@ -31,7 +31,8 @@
#include <SFML/Config.hpp>
#include <SFML/System/InputStream.hpp>
#include <SFML/System/Export.hpp>
#include <fstream>
#include <cstdio>
#include <string>
#ifdef ANDROID
namespace sf
@ -123,7 +124,7 @@ private:
#ifdef ANDROID
sf::priv::ResourceStream *m_file;
#else
std::ifstream m_file; ///< Standard file stream
std::FILE* m_file; ///< stdio file stream
#endif
};