mirror of https://github.com/encounter/SDL.git
Check if GNC is defined before checking its value to solve warns in msvc
This commit is contained in:
parent
0a600b1df4
commit
2a25b69ba5
|
@ -71,7 +71,7 @@ assert can have unique static variables associated with it.
|
||||||
|
|
||||||
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 supports __func__ as a standard. */
|
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 supports __func__ as a standard. */
|
||||||
# define SDL_FUNCTION __func__
|
# define SDL_FUNCTION __func__
|
||||||
#elif ((__GNUC__ >= 2) || defined(_MSC_VER) || defined (__WATCOMC__))
|
#elif ((defined(__GNUC__) && (__GNUC__ >= 2)) || defined(_MSC_VER) || defined (__WATCOMC__))
|
||||||
# define SDL_FUNCTION __FUNCTION__
|
# define SDL_FUNCTION __FUNCTION__
|
||||||
#else
|
#else
|
||||||
# define SDL_FUNCTION "???"
|
# define SDL_FUNCTION "???"
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
#define _begin_code_h
|
#define _begin_code_h
|
||||||
|
|
||||||
#ifndef SDL_DEPRECATED
|
#ifndef SDL_DEPRECATED
|
||||||
# if (__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))
|
||||||
# else
|
# else
|
||||||
# define SDL_DEPRECATED
|
# define SDL_DEPRECATED
|
||||||
|
|
Loading…
Reference in New Issue