Mercurial > sdl-ios-xcode
comparison include/SDL_stdinc.h @ 2077:8bfba7ec379a
Merge r2918:2919 from 1.2 branch: alloca macro params in parentheses.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Wed, 29 Nov 2006 10:34:05 +0000 |
parents | 6067c7f9a672 |
children | 874162355be5 |
comparison
equal
deleted
inserted
replaced
2076:939420dee849 | 2077:8bfba7ec379a |
---|---|
221 # else | 221 # else |
222 char *alloca(); | 222 char *alloca(); |
223 # endif | 223 # endif |
224 #endif | 224 #endif |
225 #ifdef HAVE_ALLOCA | 225 #ifdef HAVE_ALLOCA |
226 #define SDL_stack_alloc(type, count) (type*)alloca(sizeof(type)*count) | 226 #define SDL_stack_alloc(type, count) (type*)alloca(sizeof(type)*(count)) |
227 #define SDL_stack_free(data) | 227 #define SDL_stack_free(data) |
228 #else | 228 #else |
229 #define SDL_stack_alloc(type, count) (type*)SDL_malloc(sizeof(type)*count) | 229 #define SDL_stack_alloc(type, count) (type*)SDL_malloc(sizeof(type)*(count)) |
230 #define SDL_stack_free(data) SDL_free(data) | 230 #define SDL_stack_free(data) SDL_free(data) |
231 #endif | 231 #endif |
232 | 232 |
233 #ifdef HAVE_GETENV | 233 #ifdef HAVE_GETENV |
234 #define SDL_getenv getenv | 234 #define SDL_getenv getenv |