Branch: Tag:

2000-08-11

2000-08-11 14:58:25 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Improved handling of alloca().

Rev: src/global.h:1.49

5:   \*/      /* -  * $Id: global.h,v 1.48 2000/08/10 12:17:07 grubba Exp $ +  * $Id: global.h,v 1.49 2000/08/11 14:58:25 grubba Exp $    */   #ifndef GLOBAL_H   #define GLOBAL_H
40:   #endif /* !_PROTOTYPES */      /* +  * We want to use __builtin functions. +  */ + #ifndef __BUILTIN_VA_ARG_INCR + #define __BUILTIN_VA_ARG_INCR 1 + #endif /* !__BUILTIN_VA_ARG_INCR */ +  + /*    * Some structure forward declarations are needed.    */   
90:   #endif      /* AIX requires this to be the first thing in the file. */ - #ifdef __GNUC__ - # ifdef alloca - # undef alloca + #if HAVE_ALLOCA_H + # include <alloca.h> + # ifdef __GNUC__ + # ifdef alloca + # undef alloca + # endif + # define alloca __builtin_alloca   # endif - # define alloca __builtin_alloca +    #else - # if HAVE_ALLOCA_H - # include <alloca.h> + # ifdef __GNUC__ + # ifdef alloca + # undef alloca + # endif + # define alloca __builtin_alloca   # else   # ifdef _AIX    #pragma alloca   # else   # ifndef alloca /* predefined by HP cc +Olibcalls */ - char *alloca (); + void *alloca();   # endif   # endif   # endif