[libcxx-commits] [libcxx] [libc++][AIX] Support file offsets larger than 2GB in basic_filebuf on 32-bit (PR #215892)
Hubert Tong via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Aug 13 12:49:31 PDT 2026
================
@@ -217,6 +217,20 @@ typedef basic_fstream<wchar_t> wfstream;
# pragma GCC system_header
# endif
+# if defined(_AIX) || (defined(__linux__) && defined(__GLIBC__))
+# define _LIBCPP_HAS_LARGEFILE_API 1
+# else
+# define _LIBCPP_HAS_LARGEFILE_API 0
+# endif
----------------
hubert-reinterpretcast wrote:
It might be better to have the value of this be set by the `__config` header based on CMake tests for the symbol names during the build. I don't know what the preference of the libc++ maintainers would be though.
https://github.com/llvm/llvm-project/pull/215892
More information about the libcxx-commits
mailing list