From e7c10c4eaaeb128a24a43e6a26df0069fa2faff2 Mon Sep 17 00:00:00 2001 From: Osyotr Date: Wed, 3 Apr 2024 02:13:37 +0300 Subject: [PATCH] Call fseek64 only with MSVC Signed-off-by: Osyotr --- coding/internal/file_data.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/coding/internal/file_data.cpp b/coding/internal/file_data.cpp index 0d1414e310..4b39db1acb 100644 --- a/coding/internal/file_data.cpp +++ b/coding/internal/file_data.cpp @@ -36,8 +36,11 @@ FileData::FileData(string const & fileName, Op op) m_File = fopen(fileName.c_str(), modes[op]); if (m_File) { +#if defined(_MSC_VER) + // Move file pointer to the end of the file to make it consistent with other platforms if (op == OP_APPEND) fseek64(m_File, 0, SEEK_END); +#endif return; }