include/SDL_stdinc.h
changeset 1381 8570e1f4b1f1
parent 1379 c0a74f199ecf
child 1402 d910939febfa
     1.1 --- a/include/SDL_stdinc.h	Mon Feb 20 02:09:49 2006 +0000
     1.2 +++ b/include/SDL_stdinc.h	Mon Feb 20 02:30:15 2006 +0000
     1.3 @@ -27,23 +27,6 @@
     1.4  
     1.5  #include "SDL_config.h"
     1.6  
     1.7 -/* AIX requires this to be the first thing in the file.  */
     1.8 -#if HAVE_ALLOCA
     1.9 -# if HAVE_ALLOCA_H
    1.10 -#  include <alloca.h>
    1.11 -# elif __GNUC__
    1.12 -#  define alloca __builtin_alloca
    1.13 -# elif _MSC_VER
    1.14 -#  include <malloc.h>
    1.15 -#  define alloca _alloca
    1.16 -# elif _AIX
    1.17 -  #pragma alloca
    1.18 -# else
    1.19 -#  ifndef alloca /* predefined by HP cc +Olibcalls */
    1.20 -    char *alloca ();
    1.21 -#  endif
    1.22 -# endif
    1.23 -#endif
    1.24  
    1.25  #if HAVE_SYS_TYPES_H
    1.26  #include <sys/types.h>
    1.27 @@ -173,6 +156,20 @@
    1.28  extern DECLSPEC void SDLCALL SDL_free(void *mem);
    1.29  #endif
    1.30  
    1.31 +#if HAVE_ALLOCA && !defined(alloca)
    1.32 +# if HAVE_ALLOCA_H
    1.33 +#  include <alloca.h>
    1.34 +# elif __GNUC__
    1.35 +#  define alloca __builtin_alloca
    1.36 +# elif _MSC_VER
    1.37 +#  include <malloc.h>
    1.38 +#  define alloca _alloca
    1.39 +# elif _AIX
    1.40 +  #pragma alloca
    1.41 +# else
    1.42 +   char *alloca ();
    1.43 +# endif
    1.44 +#endif
    1.45  #if HAVE_ALLOCA
    1.46  #define SDL_stack_alloc(type, count)    (type*)alloca(sizeof(type)*count)
    1.47  #define SDL_stack_free(data)