summaryrefslogtreecommitdiff
path: root/include/SDL_syswm.h
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2014-08-19 22:04:54 -0700
committerSam Lantinga <slouken@libsdl.org>2014-08-19 22:04:54 -0700
commit77c675e192f4eb030d4844430a2cd248becc1c0f (patch)
tree6ef68033cf48daf7ae955dca97927c7db96b2462 /include/SDL_syswm.h
parentd0f88669b09a1c58329abd691cc8b88306304f96 (diff)
Better check for __has_feature
Diffstat (limited to 'include/SDL_syswm.h')
-rw-r--r--include/SDL_syswm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/SDL_syswm.h b/include/SDL_syswm.h
index 2f4d5a4f5f..3b5ac50fd8 100644
--- a/include/SDL_syswm.h
+++ b/include/SDL_syswm.h
@@ -208,7 +208,7 @@ struct SDL_SysWMinfo
#if defined(SDL_VIDEO_DRIVER_COCOA)
struct
{
-#if defined(__OBJC__) && defined(__clang__) && __has_feature(objc_arc)
+#if defined(__OBJC__) && defined(__has_feature) && __has_feature(objc_arc)
NSWindow __unsafe_unretained *window; /* The Cocoa window */
#else
NSWindow *window; /* The Cocoa window */
@@ -218,7 +218,7 @@ struct SDL_SysWMinfo
#if defined(SDL_VIDEO_DRIVER_UIKIT)
struct
{
-#if defined(__OBJC__) && defined(__clang__) && __has_feature(objc_arc)
+#if defined(__OBJC__) && defined(__has_feature) && __has_feature(objc_arc)
UIWindow __unsafe_unretained *window; /* The UIKit window */
#else
UIWindow *window; /* The UIKit window */