[libcxx-commits] [libcxx] [libcxx] Use _ftelli64/_fseeki64 on Windows (PR #123128)

Martin Storsjö via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jan 28 04:01:11 PST 2025


================
@@ -936,7 +936,11 @@ basic_filebuf<_CharT, _Traits>::seekoff(off_type __off, ios_base::seekdir __way,
   default:
     return pos_type(off_type(-1));
   }
-#    if !_LIBCPP_HAS_OFF_T_FUNCTIONS
+#    if defined(_LIBCPP_MSVCRT_LIKE)
----------------
mstorsjo wrote:

Ok, I factorized this into `__fseek` and `__ftell` now and use them in these both locations, and in `sync()` which I had missed.

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


More information about the libcxx-commits mailing list