File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ typedef basic_fstream<wchar_t> wfstream;
192192# include < __config>
193193
194194// Downstream issue: #375 (Enable fstream independently of filesystem)
195- # if _LIBCPP_HAS_FILESYSTEM && _LIBCPP_HAS_LOCALIZATION || defined(_NEWLIB_VERSION )
195+ # if _LIBCPP_HAS_FILESYSTEM && _LIBCPP_HAS_LOCALIZATION || defined(_LIBCPP_LIBC_NEWLIB )
196196
197197# include < __algorithm/max.h>
198198# include < __assert>
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ template class _LIBCPP_CLASS_TEMPLATE_INSTANTIATION_VIS basic_ostringstream<char
3838template class _LIBCPP_CLASS_TEMPLATE_INSTANTIATION_VIS basic_istringstream<char >;
3939
4040// Downstream issue: #375 (Enable fstream independently of filesystem)
41- #if _LIBCPP_HAS_FILESYSTEM || defined(_NEWLIB_VERSION )
41+ #if _LIBCPP_HAS_FILESYSTEM || defined(_LIBCPP_LIBC_NEWLIB )
4242template class _LIBCPP_CLASS_TEMPLATE_INSTANTIATION_VIS basic_ifstream<char >;
4343template class _LIBCPP_CLASS_TEMPLATE_INSTANTIATION_VIS basic_ofstream<char >;
4444template class _LIBCPP_CLASS_TEMPLATE_INSTANTIATION_VIS basic_filebuf<char >;
Original file line number Diff line number Diff line change 99#include < __config>
1010
1111// Downstream issue: #375 (Enable fstream independently of filesystem)
12- #if _LIBCPP_HAS_FILESYSTEM || defined(_NEWLIB_VERSION )
12+ #if _LIBCPP_HAS_FILESYSTEM || defined(_LIBCPP_LIBC_NEWLIB )
1313# include < fstream>
1414#endif
1515#include < ostream>
Original file line number Diff line number Diff line change 4141# include < fcntl.h> // _O_EXCL, ...
4242# include < sys/stat.h> // _S_IREAD, ...
4343// Downstream issue: #375 (Enable fstream independently of filesystem)
44- #elif defined(_NEWLIB_VERSION )
44+ #elif defined(_LIBCPP_LIBC_NEWLIB )
4545// No need to include extra headers for the get_temp_file_name() implementation
4646// below: tmpnam() is defined in <stdio.h>
4747#elif __has_include(<unistd.h>)
@@ -75,7 +75,7 @@ inline std::string get_temp_file_name() {
7575 abort ();
7676 }
7777// Downstream issue: #375 (Enable fstream independently of filesystem)
78- #elif defined(_NEWLIB_VERSION )
78+ #elif defined(_LIBCPP_LIBC_NEWLIB )
7979 char tmp_name[L_tmpnam];
8080 char *ret = tmpnam (tmp_name);
8181 if (ret == NULL ) {
You can’t perform that action at this time.
0 commit comments