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

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorShloka Jain2025-08-10 16:52:49 +0530
committerMartin Hořeňovský2025-08-12 14:38:50 +0200
commit3e82ef9317d4bb43d81b660404db3c3c5880aa7d (patch)
treebd731068e5abb879cb1e23259badbf6521e8ccdd
parent7cad6d75390668ad2b6bec8432a2e408a992e1bf (diff)
downloadcatch3-3e82ef9317d4bb43d81b660404db3c3c5880aa7d.tar.gz
Fix color mode detection on FreeBSD by adding platform macro
-rw-r--r--src/catch2/internal/catch_console_colour.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/catch2/internal/catch_console_colour.cpp b/src/catch2/internal/catch_console_colour.cpp
index 142de9e6..514fc6b6 100644
--- a/src/catch2/internal/catch_console_colour.cpp
+++ b/src/catch2/internal/catch_console_colour.cpp
@@ -161,7 +161,7 @@ namespace {
#endif // Windows/ ANSI/ None
-#if defined( CATCH_PLATFORM_LINUX ) || defined( CATCH_PLATFORM_MAC ) || defined( __GLIBC__ )
+#if defined( CATCH_PLATFORM_LINUX ) || defined( CATCH_PLATFORM_MAC ) || defined( __GLIBC__ ) || defined(__FreeBSD__)
# define CATCH_INTERNAL_HAS_ISATTY
# include <unistd.h>
#endif