3
0
Fork 0
mirror of https://github.com/lubosz/overte.git synced 2025-04-26 07:15:37 +02:00

Allow the project to compile using Visual Studio 2013

This commit is contained in:
Oren Hurvitz 2014-06-18 10:27:57 +03:00
parent d6f1cea1f5
commit 98b4d6f697
2 changed files with 4 additions and 1 deletions
libraries
audio/src
voxels/src

View file

@ -10,6 +10,7 @@
//
#include <cstring>
#include <functional>
#include <math.h>
#include <QtCore/QDebug>

View file

@ -177,7 +177,9 @@ int retrieveData(std::string filename, std::stringstream &ss) {
int type = file.peek();
if (type == 0x0A) {
ss.flush();
ss << file;
std::copy(std::istreambuf_iterator<char>(file),
std::istreambuf_iterator<char>(),
std::ostreambuf_iterator<char>(ss));
return 0;
}