From 5ed4b70e2273eff469d7d1dca5fec089223768de Mon Sep 17 00:00:00 2001 From: Pavlo Kleymonov Date: Mon, 3 Feb 2025 16:14:41 +0100 Subject: [PATCH] reverted modification of amalgamated distribution files --- extras/catch_amalgamated.cpp | 4 ++-- extras/catch_amalgamated.hpp | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/extras/catch_amalgamated.cpp b/extras/catch_amalgamated.cpp index 3a0c33a5..c080ad19 100644 --- a/extras/catch_amalgamated.cpp +++ b/extras/catch_amalgamated.cpp @@ -3509,7 +3509,7 @@ namespace { #endif // Windows/ ANSI/ None -#if defined( CATCH_PLATFORM_LINUX ) || defined( CATCH_PLATFORM_MAC ) || defined( CATCH_PLATFORM_QNX ) +#if defined( CATCH_PLATFORM_LINUX ) || defined( CATCH_PLATFORM_MAC ) # define CATCH_INTERNAL_HAS_ISATTY # include #endif @@ -3757,7 +3757,7 @@ namespace Catch { #endif } // namespace Catch -#elif defined(CATCH_PLATFORM_LINUX) || defined( CATCH_PLATFORM_QNX ) +#elif defined(CATCH_PLATFORM_LINUX) #include #include diff --git a/extras/catch_amalgamated.hpp b/extras/catch_amalgamated.hpp index cf8e4389..6cc67e76 100644 --- a/extras/catch_amalgamated.hpp +++ b/extras/catch_amalgamated.hpp @@ -101,9 +101,6 @@ #elif defined(linux) || defined(__linux) || defined(__linux__) # define CATCH_PLATFORM_LINUX -#elif defined(__QNX__) -# define CATCH_PLATFORM_QNX - #elif defined(WIN32) || defined(__WIN32__) || defined(_WIN32) || defined(_MSC_VER) || defined(__MINGW32__) # define CATCH_PLATFORM_WINDOWS @@ -9362,7 +9359,7 @@ namespace Catch { #define CATCH_TRAP() __asm__(".inst 0xde01") #endif -#elif defined(CATCH_PLATFORM_LINUX) || defined(CATCH_PLATFORM_QNX) +#elif defined(CATCH_PLATFORM_LINUX) // If we can use inline assembler, do it because this allows us to break // directly at the location of the failing check instead of breaking inside // raise() called from it, i.e. one stack frame below.