diff options
| author | morinmorin | 2024-03-13 02:10:03 +0900 |
|---|---|---|
| committer | Martin Hořeňovský | 2024-03-12 22:57:59 +0100 |
| commit | eb8f2c5810f29bd513ccc9ffee90e3c2997f4840 (patch) | |
| tree | 0f14b9552a017f719df40f8eb35f9db5f5dd50fd /src/catch2 | |
| parent | 88f4ec3cc5620c45086e972bd372d3ba3df8c3d3 (diff) | |
| download | catch3-eb8f2c5810f29bd513ccc9ffee90e3c2997f4840.tar.gz | |
Add workaround for unguarded use of __has_extension
Diffstat (limited to 'src/catch2')
| -rw-r--r-- | src/catch2/internal/catch_platform.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/catch2/internal/catch_platform.hpp b/src/catch2/internal/catch_platform.hpp index b11d9ccd..b653a58c 100644 --- a/src/catch2/internal/catch_platform.hpp +++ b/src/catch2/internal/catch_platform.hpp @@ -11,6 +11,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) |