Better check for __has_feature
authorSam Lantinga <slouken@libsdl.org>
Tue, 19 Aug 2014 22:04:54 -0700
changeset 9099 5bbfdfa38bfc
parent 9098 064ea0b1275c
child 9100 441e6cee6d14
Better check for __has_feature
include/SDL_syswm.h
--- a/include/SDL_syswm.h	Tue Aug 19 21:59:56 2014 -0700
+++ b/include/SDL_syswm.h	Tue Aug 19 22:04:54 2014 -0700
@@ -208,7 +208,7 @@
 #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 @@
 #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 */