Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Add workaround for unguarded use of __has_extension (for v2.x)

Commit
a7782d1d7ca84b9cc4c0f3fc4abdec0951d722b2
Author
morinmorin ·
Committer
Martin Hořeňovský
Parents
d4b0b34561a0

Files · Download .tar.gz

Changes

 include/internal/catch_platform.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/internal/catch_platform.h b/include/internal/catch_platform.h
index 82c5e144..630ea55d 100644
--- a/include/internal/catch_platform.h
+++ b/include/internal/catch_platform.h
@@ -12,6 +12,9 @@
 // See e.g.:
 // https://opensource.apple.com/source/CarbonHeaders/CarbonHeaders-18.1/TargetConditionals.h.auto.html
 #ifdef __APPLE__
+#  ifndef __has_extension
+#    define __has_extension(x) 0
+#  endif
 #  include <TargetConditionals.h>
 #  if (defined(TARGET_OS_OSX) && TARGET_OS_OSX == 1) || \
       (defined(TARGET_OS_MAC) && TARGET_OS_MAC == 1)