mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 05:35:36 +00:00
stdinc: SDL_COMPILE_TIME_ASSERT defines shouldn't have a semicolon.
This commit is contained in:
parent
cbdb67b4f6
commit
3425e9950e
|
@ -355,9 +355,9 @@ typedef uint64_t Uint64;
|
||||||
#endif /* SDL_DISABLE_ANALYZE_MACROS */
|
#endif /* SDL_DISABLE_ANALYZE_MACROS */
|
||||||
|
|
||||||
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)
|
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)
|
||||||
#define SDL_COMPILE_TIME_ASSERT(name, x) _Static_assert(x, #x);
|
#define SDL_COMPILE_TIME_ASSERT(name, x) _Static_assert(x, #x)
|
||||||
#elif defined(__cplusplus) && (__cplusplus >= 201103L)
|
#elif defined(__cplusplus) && (__cplusplus >= 201103L)
|
||||||
#define SDL_COMPILE_TIME_ASSERT(name, x) static_assert(x, #x);
|
#define SDL_COMPILE_TIME_ASSERT(name, x) static_assert(x, #x)
|
||||||
#else /* universal, but may trigger -Wunused-local-typedefs */
|
#else /* universal, but may trigger -Wunused-local-typedefs */
|
||||||
#define SDL_COMPILE_TIME_ASSERT(name, x) \
|
#define SDL_COMPILE_TIME_ASSERT(name, x) \
|
||||||
typedef int SDL_compile_time_assert_ ## name[(x) * 2 - 1]
|
typedef int SDL_compile_time_assert_ ## name[(x) * 2 - 1]
|
||||||
|
|
Loading…
Reference in a new issue