projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
479f389
)
Fix build for < C++11 since last commit
author
est31
<MTest31@outlook.com>
Fri, 17 Apr 2015 00:29:50 +0000
(
02:29
+0200)
committer
est31
<MTest31@outlook.com>
Fri, 17 Apr 2015 00:34:02 +0000
(
02:34
+0200)
Build broke since last commit
479f38973e13680d6a39d9c2a7f29fd330b67d41
for compilers not supporting C++11.
Pre C++11, the constructor of std::ifstream only allows C like strings.
src/mg_schematic.cpp
patch
|
blob
|
history
diff --git
a/src/mg_schematic.cpp
b/src/mg_schematic.cpp
index 2b9c7faeb6c5d4bc11e20ac85b73431e4d92e8d4..cb31f640c4a090eb3cf494ef8e5775277aee8dd4 100644
(file)
--- a/
src/mg_schematic.cpp
+++ b/
src/mg_schematic.cpp
@@
-345,7
+345,7
@@
bool Schematic::loadSchematicFromFile(const std::string &filename,
INodeDefManager *ndef, StringMap *replace_names,
NodeResolveMethod resolve_method)
{
- std::ifstream is(filename, std::ios_base::binary);
+ std::ifstream is(filename
.c_str()
, std::ios_base::binary);
if (!is.good()) {
errorstream << "Schematic::loadSchematicFile: unable to open file '"
<< filename << "'" << std::endl;