Merge r2918:2919 from 1.2 branch: alloca macro params in parentheses.

This commit is contained in:
Ryan C. Gordon
2006-11-29 10:34:05 +00:00
parent ca8a1cb794
commit 1330f6b999

View File

@@ -223,10 +223,10 @@ char *alloca();
# endif
#endif
#ifdef HAVE_ALLOCA
#define SDL_stack_alloc(type, count) (type*)alloca(sizeof(type)*count)
#define SDL_stack_alloc(type, count) (type*)alloca(sizeof(type)*(count))
#define SDL_stack_free(data)
#else
#define SDL_stack_alloc(type, count) (type*)SDL_malloc(sizeof(type)*count)
#define SDL_stack_alloc(type, count) (type*)SDL_malloc(sizeof(type)*(count))
#define SDL_stack_free(data) SDL_free(data)
#endif