[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
Wed Aug 19 11:34:07 PDT 2026
================
@@ -217,6 +217,14 @@ typedef basic_fstream<wchar_t> wfstream;
# pragma GCC system_header
# endif
+# if defined(_AIX)
+// On AIX, fopen64/fseeko64/ftello64 are not guaranteed to always be declared, so we declare them
+// here. They are not POSIX-reserved names, so we use __asm__ to guard them against a user #define.
----------------
philnik777 wrote:
```suggestion
// here. We use `__asm__` to avoid colliding with the declaration in the header in any way.
```
I don't think we care too much about the non-reseved name here, but we _really_ want to avoid inflicting pain on the libc because we're doing funky stuff.
https://github.com/llvm/llvm-project/pull/215892
More information about the libcxx-commits
mailing list