include/SDL_stdinc.h
branchSDL-1.2
changeset 3900 ce3a2bd11305
parent 1870 39a4f91b164a
child 3918 f16c15f3bc2b
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