@@ -216,12 +216,6 @@ typedef basic_fstream<wchar_t> wfstream;
216
216
_LIBCPP_PUSH_MACROS
217
217
# include < __undef_macros>
218
218
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
-
225
219
# if _LIBCPP_HAS_FILESYSTEM && _LIBCPP_HAS_LOCALIZATION
226
220
227
221
_LIBCPP_BEGIN_NAMESPACE_STD
@@ -950,7 +944,7 @@ template <class _CharT, class _Traits>
950
944
int basic_filebuf<_CharT, _Traits>::__fseek (FILE* __file, pos_type __offset, int __whence) {
951
945
# if defined(_LIBCPP_MSVCRT_LIKE)
952
946
return _fseeki64 (__file, __offset, __whence);
953
- # elif !_LIBCPP_HAS_OFF_T_FUNCTIONS
947
+ # elif defined(_NEWLIB_VERSION)
954
948
return fseek (__file, __offset, __whence);
955
949
# else
956
950
return ::fseeko (__file, __offset, __whence);
@@ -961,7 +955,7 @@ template <class _CharT, class _Traits>
961
955
typename basic_filebuf<_CharT, _Traits>::pos_type basic_filebuf<_CharT, _Traits>::__ftell (FILE* __file) {
962
956
# if defined(_LIBCPP_MSVCRT_LIKE)
963
957
return _ftelli64 (__file);
964
- # elif !_LIBCPP_HAS_OFF_T_FUNCTIONS
958
+ # elif defined(_NEWLIB_VERSION)
965
959
return ftell (__file);
966
960
# else
967
961
return ftello (__file);
0 commit comments