@@ -216,12 +216,6 @@ typedef basic_fstream<wchar_t> wfstream;
216216_LIBCPP_PUSH_MACROS
217217# include < __undef_macros>
218218
219- # if !defined(_LIBCPP_MSVCRT) && !defined(_NEWLIB_VERSION)
220- # define _LIBCPP_HAS_OFF_T_FUNCTIONS 1
221- # else
222- # define _LIBCPP_HAS_OFF_T_FUNCTIONS 0
223- # endif
224-
225219# if _LIBCPP_HAS_FILESYSTEM && _LIBCPP_HAS_LOCALIZATION
226220
227221_LIBCPP_BEGIN_NAMESPACE_STD
@@ -950,7 +944,7 @@ template <class _CharT, class _Traits>
950944int basic_filebuf<_CharT, _Traits>::__fseek (FILE* __file, pos_type __offset, int __whence) {
951945# if defined(_LIBCPP_MSVCRT_LIKE)
952946 return _fseeki64 (__file, __offset, __whence);
953- # elif !_LIBCPP_HAS_OFF_T_FUNCTIONS
947+ # elif defined(_NEWLIB_VERSION)
954948 return fseek (__file, __offset, __whence);
955949# else
956950 return ::fseeko (__file, __offset, __whence);
@@ -961,7 +955,7 @@ template <class _CharT, class _Traits>
961955typename basic_filebuf<_CharT, _Traits>::pos_type basic_filebuf<_CharT, _Traits>::__ftell (FILE* __file) {
962956# if defined(_LIBCPP_MSVCRT_LIKE)
963957 return _ftelli64 (__file);
964- # elif !_LIBCPP_HAS_OFF_T_FUNCTIONS
958+ # elif defined(_NEWLIB_VERSION)
965959 return ftell (__file);
966960# else
967961 return ftello (__file);
0 commit comments