Commit 84c4a54d authored by Ryan C. Gordon's avatar Ryan C. Gordon

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

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402241
parent 7f36032f
...@@ -223,10 +223,10 @@ char *alloca(); ...@@ -223,10 +223,10 @@ char *alloca();
# endif # endif
#endif #endif
#ifdef HAVE_ALLOCA #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) #define SDL_stack_free(data)
#else #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) #define SDL_stack_free(data) SDL_free(data)
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment