comparison include/SDL_stdinc.h @ 1367:e440d5c488c1

Fixes for BeOS and Solaris builds
author Sam Lantinga <slouken@libsdl.org>
date Fri, 17 Feb 2006 08:43:23 +0000
parents 19418e4422cb
children 533567cbb576
comparison
equal deleted inserted replaced
1366:34d9df784d84 1367:e440d5c488c1
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 #ifndef __GNUC__ 31 #ifdef __GNUC__
32 # if HAVE_ALLOCA_H 32 # define alloca __builtin_alloca
33 # include <alloca.h> 33 #else
34 # ifdef _MSC_VER
35 # include <malloc.h>
36 # define alloca _alloca
34 # else 37 # else
35 # ifdef _AIX 38 # if HAVE_ALLOCA_H
39 # include <alloca.h>
40 # else
41 # ifdef _AIX
36 #pragma alloca 42 #pragma alloca
37 # else 43 # else
38 # ifndef alloca /* predefined by HP cc +Olibcalls */ 44 # ifndef alloca /* predefined by HP cc +Olibcalls */
39 char *alloca (); 45 char *alloca ();
46 # endif
40 # endif 47 # endif
41 # endif 48 # endif
42 # endif 49 # endif
43 #endif 50 #endif
44 51