mirror of https://github.com/encounter/SDL.git
make SDL_syswm.h work with apple's older gcc versions
c.f. https://bugzilla.libsdl.org/show_bug.cgi?id=2694
This commit is contained in:
parent
bb76edf3d7
commit
b3498a5dc2
|
@ -256,8 +256,12 @@ struct SDL_SysWMinfo
|
||||||
#if defined(SDL_VIDEO_DRIVER_COCOA)
|
#if defined(SDL_VIDEO_DRIVER_COCOA)
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
#if defined(__OBJC__) && defined(__has_feature) && __has_feature(objc_arc)
|
#if defined(__OBJC__) && defined(__has_feature)
|
||||||
|
#if __has_feature(objc_arc)
|
||||||
NSWindow __unsafe_unretained *window; /**< The Cocoa window */
|
NSWindow __unsafe_unretained *window; /**< The Cocoa window */
|
||||||
|
#else
|
||||||
|
NSWindow *window; /**< The Cocoa window */
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
NSWindow *window; /**< The Cocoa window */
|
NSWindow *window; /**< The Cocoa window */
|
||||||
#endif
|
#endif
|
||||||
|
@ -266,8 +270,12 @@ struct SDL_SysWMinfo
|
||||||
#if defined(SDL_VIDEO_DRIVER_UIKIT)
|
#if defined(SDL_VIDEO_DRIVER_UIKIT)
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
#if defined(__OBJC__) && defined(__has_feature) && __has_feature(objc_arc)
|
#if defined(__OBJC__) && defined(__has_feature)
|
||||||
|
#if __has_feature(objc_arc)
|
||||||
UIWindow __unsafe_unretained *window; /**< The UIKit window */
|
UIWindow __unsafe_unretained *window; /**< The UIKit window */
|
||||||
|
#else
|
||||||
|
UIWindow *window; /**< The UIKit window */
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
UIWindow *window; /**< The UIKit window */
|
UIWindow *window; /**< The UIKit window */
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue