mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-04-25 19:54:58 +02:00
Make SDL_SysWMinfo usable on Mac/iOS with ARC enabled (thanks, Alex!).
Fixes Bugzilla #2641.
This commit is contained in:
parent
c0f9a57f71
commit
5b780063e1
@ -208,13 +208,21 @@ struct SDL_SysWMinfo
|
|||||||
#if defined(SDL_VIDEO_DRIVER_COCOA)
|
#if defined(SDL_VIDEO_DRIVER_COCOA)
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
NSWindow *window; /* The Cocoa window */
|
#if defined(__OBJC__) && __has_feature(objc_arc)
|
||||||
|
NSWindow __unsafe_unretained *window; /* The Cocoa window */
|
||||||
|
#else
|
||||||
|
NSWindow *window; /* The Cocoa window */
|
||||||
|
#endif
|
||||||
} cocoa;
|
} cocoa;
|
||||||
#endif
|
#endif
|
||||||
#if defined(SDL_VIDEO_DRIVER_UIKIT)
|
#if defined(SDL_VIDEO_DRIVER_UIKIT)
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
UIWindow *window; /* The UIKit window */
|
#if defined(__OBJC__) && __has_feature(objc_arc)
|
||||||
|
UIWindow __unsafe_unretained *window; /* The UIKit window */
|
||||||
|
#else
|
||||||
|
UIWindow *window; /* The UIKit window */
|
||||||
|
#endif
|
||||||
} uikit;
|
} uikit;
|
||||||
#endif
|
#endif
|
||||||
#if defined(SDL_VIDEO_DRIVER_WAYLAND)
|
#if defined(SDL_VIDEO_DRIVER_WAYLAND)
|
||||||
|
Loading…
Reference in New Issue
Block a user