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:
parent
d6f1cea1f5
commit
98b4d6f697
2 changed files with 4 additions and 1 deletions
libraries
|
@ -10,6 +10,7 @@
|
|||
//
|
||||
|
||||
#include <cstring>
|
||||
#include <functional>
|
||||
#include <math.h>
|
||||
|
||||
#include <QtCore/QDebug>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue