RagePhoto.cpp: fix compile issues with some C++ libraries
This commit is contained in:
parent
8e9d4dfcc2
commit
15cb5da634
1 changed files with 0 additions and 4 deletions
|
|
@ -1004,11 +1004,7 @@ bool RagePhoto::saveFile(const char *filename, uint32_t photoFormat)
|
||||||
m_data->error = Error::Uninitialised; // 0
|
m_data->error = Error::Uninitialised; // 0
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#if (RAGEPHOTO_CXX_STD >= 11) && (__cplusplus >= 201103L)
|
|
||||||
ofs << sdata;
|
|
||||||
#else
|
|
||||||
ofs.write(sdata.data(), sdata.size());
|
ofs.write(sdata.data(), sdata.size());
|
||||||
#endif
|
|
||||||
ok = ofs.good();
|
ok = ofs.good();
|
||||||
ofs.close();
|
ofs.close();
|
||||||
return ok;
|
return ok;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue