Skip to content

Commit 698cc21

Browse files
committed
fixed __has_include in CI/autotest
1 parent 1bc0418 commit 698cc21

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ namespace std {
4949
#include <string_view>
5050
#include <version>
5151

52-
#if __has_include(<unistd.h>)
52+
#if !defined(_EZ80) && __has_include(<unistd.h>)
5353
# include <unistd.h>
5454
#endif
5555

@@ -200,7 +200,7 @@ inline constexpr bool __use_unicode = true;
200200
_LIBCPP_HIDE_FROM_ABI inline bool __is_terminal(FILE* __stream) {
201201
# ifdef _WIN32
202202
return std::__is_windows_terminal(__stream);
203-
# elif __has_include(<unistd.h>)
203+
# elif !defined(_EZ80) && __has_include(<unistd.h>)
204204
return isatty(fileno(__stream));
205205
# elif defined(_EZ80)
206206
return false;

src/libcxxrt/chrono.cpp

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

@@ -48,7 +48,7 @@
4848
# include <zircon/syscalls.h>
4949
#endif
5050

51-
#if __has_include(<mach/mach_time.h>)
51+
#if !defined(_EZ80) && __has_include(<mach/mach_time.h>)
5252
# include <mach/mach_time.h>
5353
#endif
5454

0 commit comments

Comments
 (0)