Commit 2d2f90200dad4e96758e170a339b3696fed14331

Sam Lantinga 2014-08-19T22:04:54

Better check for __has_feature

diff --git a/include/SDL_syswm.h b/include/SDL_syswm.h
index 2f4d5a4..3b5ac50 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 */