From 15cb5da6340008ed521aacd537ca5528aa49b186 Mon Sep 17 00:00:00 2001 From: Syping Date: Tue, 21 Oct 2025 21:51:17 +0200 Subject: [PATCH] RagePhoto.cpp: fix compile issues with some C++ libraries --- src/core/RagePhoto.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/core/RagePhoto.cpp b/src/core/RagePhoto.cpp index e556d0e..6e51099 100644 --- a/src/core/RagePhoto.cpp +++ b/src/core/RagePhoto.cpp @@ -1004,11 +1004,7 @@ bool RagePhoto::saveFile(const char *filename, uint32_t photoFormat) m_data->error = Error::Uninitialised; // 0 return false; } -#if (RAGEPHOTO_CXX_STD >= 11) && (__cplusplus >= 201103L) - ofs << sdata; -#else ofs.write(sdata.data(), sdata.size()); -#endif ok = ofs.good(); ofs.close(); return ok;