catch_console_colour.cpp - adjust useColourOnPlatform for iOS

This commit is contained in:
ptc-tgamper 2019-12-18 10:19:10 +01:00 committed by Martin Hořeňovský
parent 0c59cc83cf
commit 4e90f910dc
2 changed files with 2 additions and 2 deletions

View File

@ -167,7 +167,7 @@ namespace {
bool useColourOnPlatform() { bool useColourOnPlatform() {
return return
#ifdef CATCH_PLATFORM_MAC #if defined(CATCH_PLATFORM_MAC) || defined(CATCH_PLATFORM_IPHONE)
!isDebuggerActive() && !isDebuggerActive() &&
#endif #endif
#if !(defined(__DJGPP__) && defined(__STRICT_ANSI__)) #if !(defined(__DJGPP__) && defined(__STRICT_ANSI__))

View File

@ -12,7 +12,7 @@
#include "catch_stream.h" #include "catch_stream.h"
#include "catch_platform.h" #include "catch_platform.h"
#if defined(CATCH_PLATFORM_MAC) || defined(CATCH_PLATFORM_IPHONE) #if defined(CATCH_PLATFORM_MAC) || defined(CATCH_PLATFORM_IPHONE)
# include <assert.h> # include <assert.h>
# include <stdbool.h> # include <stdbool.h>