Skip to content

Commit 3e82ef9

Browse files
Shloka Jainhorenmar
authored andcommitted
Fix color mode detection on FreeBSD by adding platform macro
1 parent 7cad6d7 commit 3e82ef9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/catch2/internal/catch_console_colour.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ namespace {
161161
#endif // Windows/ ANSI/ None
162162

163163

164-
#if defined( CATCH_PLATFORM_LINUX ) || defined( CATCH_PLATFORM_MAC ) || defined( __GLIBC__ )
164+
#if defined( CATCH_PLATFORM_LINUX ) || defined( CATCH_PLATFORM_MAC ) || defined( __GLIBC__ ) || defined(__FreeBSD__)
165165
# define CATCH_INTERNAL_HAS_ISATTY
166166
# include <unistd.h>
167167
#endif

0 commit comments

Comments
 (0)