Skip to content

Commit 094d49f

Browse files
committed
fixed __has_include in CI/autotest
1 parent eb1dd8b commit 094d49f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/libcxx/include/__mbstate_t.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
# define __NEED_mbstate_t
4040
# include <bits/alltypes.h>
4141
# undef __NEED_mbstate_t
42-
#elif __has_include(<bits/types/mbstate_t.h>)
42+
#elif !defined(_EZ80) && __has_include(<bits/types/mbstate_t.h>)
4343
# include <bits/types/mbstate_t.h> // works on most Unixes
44-
#elif __has_include(<sys/_types/_mbstate_t.h>)
44+
#elif !defined(_EZ80) && __has_include(<sys/_types/_mbstate_t.h>)
4545
# include <sys/_types/_mbstate_t.h> // works on Darwin
4646
#elif !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS) && __has_include_next(<wchar.h>)
4747
# include_next <wchar.h> // fall back to the C standard provider of mbstate_t

src/libcxx/include/print

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ _LIBCPP_EXPORTED_FROM_ABI bool __is_windows_terminal(FILE* __stream);
6666
// Note the function is only implemented on the Windows platform.
6767
_LIBCPP_EXPORTED_FROM_ABI void __write_to_windows_console(FILE* __stream, wstring_view __view);
6868
# endif // _LIBCPP_HAS_NO_WIDE_CHARACTERS
69-
#elif __has_include(<unistd.h>)
69+
#elif !defined(_EZ80) && __has_include(<unistd.h>)
7070
_LIBCPP_EXPORTED_FROM_ABI bool __is_posix_terminal(FILE* __stream);
7171
#endif // _LIBCPP_WIN32API
7272

@@ -203,8 +203,8 @@ _LIBCPP_HIDE_FROM_ABI inline bool __is_terminal([[maybe_unused]] FILE* __stream)
203203
return false;
204204
# elif defined(_LIBCPP_WIN32API)
205205
return std::__is_windows_terminal(__stream);
206-
# elif __has_include(<unistd.h>)
207-
return std::__is_posix_terminal(__stream);
206+
# elif !defined(_EZ80) && __has_include(<unistd.h>)
207+
return isatty(fileno(__stream));
208208
# elif defined(_EZ80)
209209
return false;
210210
# else

src/libcxx/src/chrono.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
#include "include/apple_availability.h"
2424
#include <time.h> // clock_gettime and CLOCK_{MONOTONIC,REALTIME,MONOTONIC_RAW}
2525

26-
#if __has_include(<unistd.h>)
26+
#if !defined(_EZ80) && __has_include(<unistd.h>)
2727
# include <unistd.h> // _POSIX_TIMERS
2828
#endif
2929

30-
#if __has_include(<sys/time.h>)
30+
#if !defined(_EZ80) && __has_include(<sys/time.h>)
3131
# include <sys/time.h> // for gettimeofday and timeval
3232
#endif
3333

@@ -50,7 +50,7 @@
5050
# include <zircon/syscalls.h>
5151
#endif
5252

53-
#if __has_include(<mach/mach_time.h>)
53+
#if !defined(_EZ80) && __has_include(<mach/mach_time.h>)
5454
# include <mach/mach_time.h>
5555
#endif
5656

0 commit comments

Comments
 (0)