mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
Better check for __has_feature
This commit is contained in:
parent
38b49c30e1
commit
2d2f90200d
@ -208,7 +208,7 @@ struct SDL_SysWMinfo
|
|||||||
#if defined(SDL_VIDEO_DRIVER_COCOA)
|
#if defined(SDL_VIDEO_DRIVER_COCOA)
|
||||||
struct
|
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 */
|
NSWindow __unsafe_unretained *window; /* The Cocoa window */
|
||||||
#else
|
#else
|
||||||
NSWindow *window; /* The Cocoa window */
|
NSWindow *window; /* The Cocoa window */
|
||||||
@ -218,7 +218,7 @@ struct SDL_SysWMinfo
|
|||||||
#if defined(SDL_VIDEO_DRIVER_UIKIT)
|
#if defined(SDL_VIDEO_DRIVER_UIKIT)
|
||||||
struct
|
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 */
|
UIWindow __unsafe_unretained *window; /* The UIKit window */
|
||||||
#else
|
#else
|
||||||
UIWindow *window; /* The UIKit window */
|
UIWindow *window; /* The UIKit window */
|
||||||
|
Loading…
Reference in New Issue
Block a user