Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMasashi Fujita2025-12-12 02:25:46 +0900
committerMartin Hořeňovský2025-12-12 09:38:52 +0100
commit97091636d012baa87711e7dbbd4cd778b96a211b (patch)
tree21be8d575d03d4ec50bda94e15ca642986fa3735
parentf80956a43a3e276686ed59531b41617282d75a0c (diff)
downloadcatch3-97091636d012baa87711e7dbbd4cd778b96a211b.tar.gz
Fix conditional compilation for FreeBSD to exclude PlayStation platform
-rw-r--r--src/catch2/internal/catch_console_colour.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/catch2/internal/catch_console_colour.cpp b/src/catch2/internal/catch_console_colour.cpp
index 948c4cb6..0c9ef546 100644
--- a/src/catch2/internal/catch_console_colour.cpp
+++ b/src/catch2/internal/catch_console_colour.cpp
@@ -164,7 +164,9 @@ namespace {
#if defined( CATCH_PLATFORM_LINUX ) \
|| defined( CATCH_PLATFORM_MAC ) \
|| defined( __GLIBC__ ) \
- || defined( __FreeBSD__ ) \
+ || (defined( __FreeBSD__ ) \
+ /* PlayStation platform does not have `isatty()` */ \
+ && !defined(CATCH_PLATFORM_PLAYSTATION)) \
|| defined( CATCH_PLATFORM_QNX )
# define CATCH_INTERNAL_HAS_ISATTY
# include <unistd.h>