mirror of
				https://github.com/libsdl-org/SDL.git
				synced 2025-11-04 09:44:35 +00:00 
			
		
		
		
	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:
		@@ -256,20 +256,28 @@ struct SDL_SysWMinfo
 | 
			
		||||
#if defined(SDL_VIDEO_DRIVER_COCOA)
 | 
			
		||||
        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 */
 | 
			
		||||
        #else
 | 
			
		||||
            NSWindow *window;                     /**< The Cocoa window */
 | 
			
		||||
        #endif
 | 
			
		||||
#else
 | 
			
		||||
            NSWindow *window;                     /**< The Cocoa window */
 | 
			
		||||
#endif
 | 
			
		||||
        } cocoa;
 | 
			
		||||
#endif
 | 
			
		||||
#if defined(SDL_VIDEO_DRIVER_UIKIT)
 | 
			
		||||
        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 */
 | 
			
		||||
        #else
 | 
			
		||||
            UIWindow *window;                     /**< The UIKit window */
 | 
			
		||||
        #endif
 | 
			
		||||
#else
 | 
			
		||||
            UIWindow *window;                     /**< The UIKit window */
 | 
			
		||||
#endif
 | 
			
		||||
            GLuint framebuffer; /**< The GL view's Framebuffer Object. It must be bound when rendering to the screen using GL. */
 | 
			
		||||
            GLuint colorbuffer; /**< The GL view's color Renderbuffer Object. It must be bound when SDL_GL_SwapWindow is called. */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user