Fix color mode detection on FreeBSD by adding platform macro

This commit is contained in:
Shloka Jain
2025-08-10 16:52:49 +05:30
committed by Martin Hořeňovský
parent 7cad6d7539
commit 3e82ef9317

View File

@@ -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