Mercurial > sdl-ios-xcode
comparison include/SDL_stdinc.h @ 3900:ce3a2bd11305 SDL-1.2
Wrapped some macro params in parentheses for alloca wrappers.
Thansk, Suzuki Masahiro.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Wed, 29 Nov 2006 10:30:05 +0000 |
parents | 39a4f91b164a |
children | f16c15f3bc2b |
comparison
equal
deleted
inserted
replaced
3899:081aecdb0911 | 3900:ce3a2bd11305 |
---|---|
179 # else | 179 # else |
180 char *alloca (); | 180 char *alloca (); |
181 # endif | 181 # endif |
182 #endif | 182 #endif |
183 #ifdef HAVE_ALLOCA | 183 #ifdef HAVE_ALLOCA |
184 #define SDL_stack_alloc(type, count) (type*)alloca(sizeof(type)*count) | 184 #define SDL_stack_alloc(type, count) (type*)alloca(sizeof(type)*(count)) |
185 #define SDL_stack_free(data) | 185 #define SDL_stack_free(data) |
186 #else | 186 #else |
187 #define SDL_stack_alloc(type, count) (type*)SDL_malloc(sizeof(type)*count) | 187 #define SDL_stack_alloc(type, count) (type*)SDL_malloc(sizeof(type)*(count)) |
188 #define SDL_stack_free(data) SDL_free(data) | 188 #define SDL_stack_free(data) SDL_free(data) |
189 #endif | 189 #endif |
190 | 190 |
191 #ifdef HAVE_GETENV | 191 #ifdef HAVE_GETENV |
192 #define SDL_getenv getenv | 192 #define SDL_getenv getenv |