Skip to content

Commit b4be3ef

Browse files
committed
Remove the intermediate _LIBCPP_HAS_OFF_T_FUNCTIONS define
1 parent a7e48af commit b4be3ef

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

libcxx/include/fstream

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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>
950944
int 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>
961955
typename 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

Comments
 (0)