mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-05 22:30:29 +00:00
stdinc: make SDL_stack_free evaluate to ((void)(data)) when alloca is usable.
Fixes #15727.
(cherry picked from commit 67e6f5b7ee)
This commit is contained in:
parent
6dbdb94cae
commit
f5ed7160bf
1 changed files with 1 additions and 1 deletions
|
|
@ -1306,7 +1306,7 @@ extern "C" {
|
|||
#define SDL_stack_free(data)
|
||||
#elif !defined(SDL_DISABLE_ALLOCA)
|
||||
#define SDL_stack_alloc(type, count) (type*)alloca(sizeof(type)*(count))
|
||||
#define SDL_stack_free(data)
|
||||
#define SDL_stack_free(data) ((void)(data))
|
||||
#else
|
||||
#define SDL_stack_alloc(type, count) (type*)SDL_malloc(sizeof(type)*(count))
|
||||
#define SDL_stack_free(data) SDL_free(data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue