mirror of
				https://github.com/libsdl-org/SDL.git
				synced 2025-11-04 09:44:35 +00:00 
			
		
		
		
	MSVC has __declspec(deprecated)
This commit is contained in:
		@@ -36,6 +36,8 @@
 | 
				
			|||||||
#ifndef SDL_DEPRECATED
 | 
					#ifndef SDL_DEPRECATED
 | 
				
			||||||
#  if defined(__GNUC__) && (__GNUC__ >= 4)  /* technically, this arrived in gcc 3.1, but oh well. */
 | 
					#  if defined(__GNUC__) && (__GNUC__ >= 4)  /* technically, this arrived in gcc 3.1, but oh well. */
 | 
				
			||||||
#    define SDL_DEPRECATED __attribute__((deprecated))
 | 
					#    define SDL_DEPRECATED __attribute__((deprecated))
 | 
				
			||||||
 | 
					#  elif defined(_MSC_VER)
 | 
				
			||||||
 | 
					#    define SDL_DEPRECATED __declspec(deprecated)
 | 
				
			||||||
#  else
 | 
					#  else
 | 
				
			||||||
#    define SDL_DEPRECATED
 | 
					#    define SDL_DEPRECATED
 | 
				
			||||||
#  endif
 | 
					#  endif
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user