mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-31 17:07:39 +00:00
MSVC has __declspec(deprecated)
This commit is contained in:
parent
279ff8909f
commit
917e036f6f
1 changed files with 2 additions and 0 deletions
|
@ -36,6 +36,8 @@
|
|||
#ifndef SDL_DEPRECATED
|
||||
# if defined(__GNUC__) && (__GNUC__ >= 4) /* technically, this arrived in gcc 3.1, but oh well. */
|
||||
# define SDL_DEPRECATED __attribute__((deprecated))
|
||||
# elif defined(_MSC_VER)
|
||||
# define SDL_DEPRECATED __declspec(deprecated)
|
||||
# else
|
||||
# define SDL_DEPRECATED
|
||||
# endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue