0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-28 01:04:41 +08:00

Linux build: have to COPY file contents. Sad :(

This commit is contained in:
Victor Zarubkin 2016-09-27 00:51:45 +03:00
parent 15ba83cb20
commit 7e4e921403

View File

@ -239,16 +239,15 @@ extern "C" {
return 0;
::std::stringstream str;
#ifdef _WIN32
str.set_rdbuf(inFile.rdbuf());
return fillTreesFromStream(progress, str, serialized_blocks, serialized_descriptors, descriptors, blocks, threaded_trees, gather_statistics);
#else
auto oldbuf = str.rdbuf(inFile.rdbuf());
auto result = fillTreesFromStream(progress, str, serialized_blocks, serialized_descriptors, descriptors, blocks, threaded_trees, gather_statistics);
str.rdbuf(oldbuf);
return result;
str << inFile.rdbuf();
inFile.close();
#endif
return fillTreesFromStream(progress, str, serialized_blocks, serialized_descriptors, descriptors, blocks, threaded_trees, gather_statistics);
}
//////////////////////////////////////////////////////////////////////////