mirror of
				https://github.com/libsdl-org/SDL.git
				synced 2025-11-04 01:34:38 +00:00 
			
		
		
		
	Fixed compiling SDL_platform_defines.h on macOS with older compilers (thanks @sezero!)
Fixes #9632
(cherry picked from commit 36015ad5e5)
			
			
This commit is contained in:
		@@ -73,7 +73,13 @@
 | 
			
		||||
#if defined(__APPLE__)
 | 
			
		||||
/* lets us know what version of Mac OS X we're compiling on */
 | 
			
		||||
#include <AvailabilityMacros.h>
 | 
			
		||||
#ifndef __has_extension /* Older compilers don't support this */
 | 
			
		||||
#define __has_extension(x) 0
 | 
			
		||||
#include <TargetConditionals.h>
 | 
			
		||||
#undef __has_extension
 | 
			
		||||
#else
 | 
			
		||||
#include <TargetConditionals.h>
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/* Fix building with older SDKs that don't define these
 | 
			
		||||
   See this for more information:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user