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

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/internal/catch_console_colour.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2025-09-22 15:12:28 +0200
committerMartin Hořeňovský2025-09-22 15:36:46 +0200
commit9048c24fa7c6b568d52f76cbf06bbd62b7f83556 (patch)
tree5257d7727a2b615277d58e5a4ccebb71e80a2019 /src/catch2/internal/catch_console_colour.cpp
parent8ed8c431c601c7b303dbfe7eb412a63f1641b812 (diff)
downloadcatch3-9048c24fa7c6b568d52f76cbf06bbd62b7f83556.tar.gz
Improve QNX support
This cherry-picks the source changes from PR made by @pkleymonov-qnx, without including the build path changes that are irrelevant unless we can add a QNX target to our CI. Close #2953
Diffstat (limited to 'src/catch2/internal/catch_console_colour.cpp')
-rw-r--r--src/catch2/internal/catch_console_colour.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/catch2/internal/catch_console_colour.cpp b/src/catch2/internal/catch_console_colour.cpp
index 514fc6b6..948c4cb6 100644
--- a/src/catch2/internal/catch_console_colour.cpp
+++ b/src/catch2/internal/catch_console_colour.cpp
@@ -161,7 +161,11 @@ namespace {
#endif // Windows/ ANSI/ None
-#if defined( CATCH_PLATFORM_LINUX ) || defined( CATCH_PLATFORM_MAC ) || defined( __GLIBC__ ) || defined(__FreeBSD__)
+#if defined( CATCH_PLATFORM_LINUX ) \
+ || defined( CATCH_PLATFORM_MAC ) \
+ || defined( __GLIBC__ ) \
+ || defined( __FreeBSD__ ) \
+ || defined( CATCH_PLATFORM_QNX )
# define CATCH_INTERNAL_HAS_ISATTY
# include <unistd.h>
#endif