Skip to content

Commit a9cd941

Browse files
committed
[libcxx] Fix inverted has_terminal condition
Summary: This used to indicate "has no terminal" and now it indicates "has terminal" but the check was not changed.
1 parent dd11636 commit a9cd941

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/include/print

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ _LIBCPP_HIDE_FROM_ABI inline bool __is_terminal([[maybe_unused]] FILE* __stream)
199199
// the behavior in the test. This is not part of the public API.
200200
# ifdef _LIBCPP_TESTING_PRINT_IS_TERMINAL
201201
return _LIBCPP_TESTING_PRINT_IS_TERMINAL(__stream);
202-
# elif _LIBCPP_AVAILABILITY_HAS_PRINT == 0 || _LIBCPP_HAS_TERMINAL
202+
# elif _LIBCPP_AVAILABILITY_HAS_PRINT == 0 || !_LIBCPP_HAS_TERMINAL
203203
return false;
204204
# elif defined(_LIBCPP_WIN32API)
205205
return std::__is_windows_terminal(__stream);

0 commit comments

Comments
 (0)