Better check for __has_feature
authorSam Lantinga <slouken@libsdl.org>
Tue, 19 Aug 2014 22:04:54 -0700
changeset 90995bbfdfa38bfc
parent 9098 064ea0b1275c
child 9100 441e6cee6d14
Better check for __has_feature
include/SDL_syswm.h
     1.1 --- a/include/SDL_syswm.h	Tue Aug 19 21:59:56 2014 -0700
     1.2 +++ b/include/SDL_syswm.h	Tue Aug 19 22:04:54 2014 -0700
     1.3 @@ -208,7 +208,7 @@
     1.4  #if defined(SDL_VIDEO_DRIVER_COCOA)
     1.5          struct
     1.6          {
     1.7 -#if defined(__OBJC__) && defined(__clang__) && __has_feature(objc_arc)
     1.8 +#if defined(__OBJC__) && defined(__has_feature) && __has_feature(objc_arc)
     1.9              NSWindow __unsafe_unretained *window; /* The Cocoa window */
    1.10  #else
    1.11              NSWindow *window;                     /* The Cocoa window */
    1.12 @@ -218,7 +218,7 @@
    1.13  #if defined(SDL_VIDEO_DRIVER_UIKIT)
    1.14          struct
    1.15          {
    1.16 -#if defined(__OBJC__) && defined(__clang__) && __has_feature(objc_arc)
    1.17 +#if defined(__OBJC__) && defined(__has_feature) && __has_feature(objc_arc)
    1.18              UIWindow __unsafe_unretained *window; /* The UIKit window */
    1.19  #else
    1.20              UIWindow *window;                     /* The UIKit window */