include/SDL_stdinc.h
changeset 1368 533567cbb576
parent 1367 e440d5c488c1
child 1379 c0a74f199ecf
equal deleted inserted replaced
1367:e440d5c488c1 1368:533567cbb576
    26 #define _SDL_stdinc_h
    26 #define _SDL_stdinc_h
    27 
    27 
    28 #include "SDL_config.h"
    28 #include "SDL_config.h"
    29 
    29 
    30 /* AIX requires this to be the first thing in the file.  */
    30 /* AIX requires this to be the first thing in the file.  */
    31 #ifdef __GNUC__
    31 #if HAVE_ALLOCA
    32 # define alloca __builtin_alloca
    32 # if HAVE_ALLOCA_H
    33 #else
    33 #  include <alloca.h>
    34 # ifdef _MSC_VER
    34 # elif __GNUC__
       
    35 #  define alloca __builtin_alloca
       
    36 # elif _MSC_VER
    35 #  include <malloc.h>
    37 #  include <malloc.h>
    36 #  define alloca _alloca
    38 #  define alloca _alloca
       
    39 # elif _AIX
       
    40   #pragma alloca
    37 # else
    41 # else
    38 #  if HAVE_ALLOCA_H
    42 #  ifndef alloca /* predefined by HP cc +Olibcalls */
    39 #   include <alloca.h>
    43     char *alloca ();
    40 #  else
       
    41 #   ifdef _AIX
       
    42  #pragma alloca
       
    43 #   else
       
    44 #    ifndef alloca /* predefined by HP cc +Olibcalls */
       
    45 char *alloca ();
       
    46 #    endif
       
    47 #   endif
       
    48 #  endif
    44 #  endif
    49 # endif
    45 # endif
    50 #endif
    46 #endif
    51 
    47 
    52 #if HAVE_SYS_TYPES_H
    48 #if HAVE_SYS_TYPES_H