From 010c19ba61a3180dab6350aadc578414ad0c0051 Mon Sep 17 00:00:00 2001 From: Conrad Kostecki Date: Mon, 1 Jan 2024 20:34:19 +0100 Subject: [PATCH] src/openrct2/core/FileStream.cpp: drop ftello64, fseeko64 The static usage definition of ftello64 and friends is not correct. While this currently works on glibc, this breaks on musl, as musl already is LFS aware. The solution is to drop this and add instead '-D_FILE_OFFSET_BITS=64' to the build system. Signed-off-by: Conrad Kostecki --- src/openrct2/core/FileStream.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/openrct2/core/FileStream.cpp b/src/openrct2/core/FileStream.cpp index 90a7f7a366..6fd7b7b1b4 100644 --- a/src/openrct2/core/FileStream.cpp +++ b/src/openrct2/core/FileStream.cpp @@ -21,11 +21,6 @@ # include #endif -#if defined(__linux__) && !defined(__ANDROID__) -# define ftello ftello64 -# define fseeko fseeko64 -#endif - #ifdef _MSC_VER # define ftello _ftelli64 # define fseeko _fseeki64