Skip to content

Commit c2eb467

Browse files
committed
fix more CI includes
1 parent 08461cc commit c2eb467

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/libcxx/include/fstream

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ public:
234234
# if _LIBCPP_STD_VER >= 26
235235
# if defined(_LIBCPP_WIN32API)
236236
using native_handle_type = void*; // HANDLE
237-
# elif __has_include(<unistd.h>)
237+
# elif !defined(_EZ80) && __has_include(<unistd.h>)
238238
using native_handle_type = int; // POSIX file descriptor
239239
# else
240240
# error "Provide a native file handle!"
@@ -271,7 +271,7 @@ public:
271271
_LIBCPP_ASSERT_UNCATEGORIZED(this->is_open(), "File must be opened");
272272
# if defined(_LIBCPP_WIN32API)
273273
return std::__filebuf_windows_native_handle(__file_);
274-
# elif __has_include(<unistd.h>)
274+
# elif !defined(_EZ80) && __has_include(<unistd.h>)
275275
return fileno(__file_);
276276
# else
277277
# error "Provide a way to determine the file native handle!"

src/libcxx/src/print.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# define NOMINMAX
2121
# include <io.h>
2222
# include <windows.h>
23-
#elif __has_include(<unistd.h>)
23+
#elif !defined(_EZ80) && __has_include(<unistd.h>)
2424
# include <unistd.h>
2525
#endif
2626

@@ -56,7 +56,7 @@ __write_to_windows_console([[maybe_unused]] FILE* __stream, [[maybe_unused]] wst
5656
}
5757
# endif // _LIBCPP_HAS_NO_WIDE_CHARACTERS
5858

59-
#elif __has_include(<unistd.h>) // !_LIBCPP_WIN32API
59+
#elif !defined(_EZ80) && __has_include(<unistd.h>) // !_LIBCPP_WIN32API
6060

6161
_LIBCPP_EXPORTED_FROM_ABI bool __is_posix_terminal(FILE* __stream) { return isatty(fileno(__stream)); }
6262
#endif

0 commit comments

Comments
 (0)