include/SDL_stdinc.h
changeset 1368 533567cbb576
parent 1367 e440d5c488c1
child 1379 c0a74f199ecf
     1.1 --- a/include/SDL_stdinc.h	Fri Feb 17 08:43:23 2006 +0000
     1.2 +++ b/include/SDL_stdinc.h	Sat Feb 18 06:51:00 2006 +0000
     1.3 @@ -28,23 +28,19 @@
     1.4  #include "SDL_config.h"
     1.5  
     1.6  /* AIX requires this to be the first thing in the file.  */
     1.7 -#ifdef __GNUC__
     1.8 -# define alloca __builtin_alloca
     1.9 -#else
    1.10 -# ifdef _MSC_VER
    1.11 +#if HAVE_ALLOCA
    1.12 +# if HAVE_ALLOCA_H
    1.13 +#  include <alloca.h>
    1.14 +# elif __GNUC__
    1.15 +#  define alloca __builtin_alloca
    1.16 +# elif _MSC_VER
    1.17  #  include <malloc.h>
    1.18  #  define alloca _alloca
    1.19 +# elif _AIX
    1.20 +  #pragma alloca
    1.21  # else
    1.22 -#  if HAVE_ALLOCA_H
    1.23 -#   include <alloca.h>
    1.24 -#  else
    1.25 -#   ifdef _AIX
    1.26 - #pragma alloca
    1.27 -#   else
    1.28 -#    ifndef alloca /* predefined by HP cc +Olibcalls */
    1.29 -char *alloca ();
    1.30 -#    endif
    1.31 -#   endif
    1.32 +#  ifndef alloca /* predefined by HP cc +Olibcalls */
    1.33 +    char *alloca ();
    1.34  #  endif
    1.35  # endif
    1.36  #endif