Skip to content

Commit

Permalink
Make SDL_SysWMinfo usable on Mac/iOS with ARC enabled (thanks, Alex!).
Browse files Browse the repository at this point in the history
Fixes Bugzilla #2641.
  • Loading branch information
icculus committed Jul 30, 2014
1 parent c0f9a57 commit 5b78006
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions include/SDL_syswm.h
Expand Up @@ -208,13 +208,21 @@ struct SDL_SysWMinfo
#if defined(SDL_VIDEO_DRIVER_COCOA)
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;
#endif
#if defined(SDL_VIDEO_DRIVER_UIKIT)
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;
#endif
#if defined(SDL_VIDEO_DRIVER_WAYLAND)
Expand Down

0 comments on commit 5b78006

Please sign in to comment.