include/SDL_syswm.h
branchiOS-improvements
changeset 9515 63f5d07c7d70
parent 9510 e19faa3b5d88
parent 9099 5bbfdfa38bfc
child 9521 4c218c80b34d
     1.1 --- a/include/SDL_syswm.h	Fri Aug 08 15:14:09 2014 -0300
     1.2 +++ b/include/SDL_syswm.h	Wed Aug 20 17:20:22 2014 -0300
     1.3 @@ -208,20 +208,20 @@
     1.4  #if defined(SDL_VIDEO_DRIVER_COCOA)
     1.5          struct
     1.6          {
     1.7 -#if defined(__OBJC__) && __has_feature(objc_arc)
     1.8 -            NSWindow * __unsafe_unretained window; /* The Cocoa window */
     1.9 +#if defined(__OBJC__) && defined(__has_feature) && __has_feature(objc_arc)
    1.10 +            NSWindow __unsafe_unretained *window; /* The Cocoa window */
    1.11  #else
    1.12 -            NSWindow *window;                      /* The Cocoa window */
    1.13 +            NSWindow *window;                     /* The Cocoa window */
    1.14  #endif
    1.15          } cocoa;
    1.16  #endif
    1.17  #if defined(SDL_VIDEO_DRIVER_UIKIT)
    1.18          struct
    1.19          {
    1.20 -#if defined(__OBJC__) && __has_feature(objc_arc)
    1.21 -            UIWindow * __unsafe_unretained window; /* The UIKit window */
    1.22 +#if defined(__OBJC__) && defined(__has_feature) && __has_feature(objc_arc)
    1.23 +            UIWindow __unsafe_unretained *window; /* The UIKit window */
    1.24  #else
    1.25 -            UIWindow *window;                      /* The UIKit window */
    1.26 +            UIWindow *window;                     /* The UIKit window */
    1.27  #endif
    1.28          } uikit;
    1.29  #endif