mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-06 07:20:48 +00:00
Revert "Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!)"
This reverts commit 9d453daa23
.
Oops, it totally doesn't work:
error: unused variable 'SDL_compile_time_assert_SDL_copyp' [-Werror=unused-variable]
This commit is contained in:
parent
9d453daa23
commit
080b1dfbdb
1 changed files with 2 additions and 1 deletions
|
@ -335,8 +335,9 @@ typedef uint64_t Uint64;
|
||||||
#endif /* !SDL_COMPILE_TIME_ASSERT */
|
#endif /* !SDL_COMPILE_TIME_ASSERT */
|
||||||
|
|
||||||
#ifndef SDL_COMPILE_TIME_ASSERT
|
#ifndef SDL_COMPILE_TIME_ASSERT
|
||||||
|
/* universal, but may trigger -Wunused-local-typedefs */
|
||||||
#define SDL_COMPILE_TIME_ASSERT(name, x) \
|
#define SDL_COMPILE_TIME_ASSERT(name, x) \
|
||||||
extern int SDL_compile_time_assert_ ## name[(x) * 2 - 1]
|
typedef int SDL_compile_time_assert_ ## name[(x) * 2 - 1]
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** \cond */
|
/** \cond */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue