mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-16 18:52:25 +01:00
Add workaround for unguarded use of __has_extension (for v2.x)
This commit is contained in:
parent
d4b0b34561
commit
a7782d1d7c
@ -12,6 +12,9 @@
|
|||||||
// See e.g.:
|
// See e.g.:
|
||||||
// https://opensource.apple.com/source/CarbonHeaders/CarbonHeaders-18.1/TargetConditionals.h.auto.html
|
// https://opensource.apple.com/source/CarbonHeaders/CarbonHeaders-18.1/TargetConditionals.h.auto.html
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
|
# ifndef __has_extension
|
||||||
|
# define __has_extension(x) 0
|
||||||
|
# endif
|
||||||
# include <TargetConditionals.h>
|
# include <TargetConditionals.h>
|
||||||
# if (defined(TARGET_OS_OSX) && TARGET_OS_OSX == 1) || \
|
# if (defined(TARGET_OS_OSX) && TARGET_OS_OSX == 1) || \
|
||||||
(defined(TARGET_OS_MAC) && TARGET_OS_MAC == 1)
|
(defined(TARGET_OS_MAC) && TARGET_OS_MAC == 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user