[libcxx-commits] [libcxx] [libc++] Support file offsets larger than 2GB in basic_filebuf on 32-bit AIX and 32-bit glibc Linux (PR #215892)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Fri Aug 14 00:42:05 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
----------------
philnik777 wrote:

We generally prefer just checking for platform macros instead of CMake tests. That tends to be much more brittle.

https://github.com/llvm/llvm-project/pull/215892


More information about the libcxx-commits mailing list