Print this page
remove support for non-ANSI compilation

*** 18,36 **** * information: Portions Copyright [yyyy] [name of copyright owner] * * CDDL HEADER END */ /* * Copyright 2004 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ #ifndef _ALLOCA_H #define _ALLOCA_H - #pragma ident "%Z%%M% %I% %E% SMI" - #include <sys/types.h> #ifdef __cplusplus extern "C" { #endif --- 18,36 ---- * information: Portions Copyright [yyyy] [name of copyright owner] * * CDDL HEADER END */ /* + * Copyright 2014 Garrett D'Amore <garrett@damore.org> + * * Copyright 2004 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ #ifndef _ALLOCA_H #define _ALLOCA_H #include <sys/types.h> #ifdef __cplusplus extern "C" { #endif
*** 54,76 **** #if defined(__BUILTIN_VA_ARG_INCR) || \ defined(__sparc) || defined(__i386) || defined(__amd64) #define alloca(x) __builtin_alloca(x) - #ifdef __STDC__ extern void *__builtin_alloca(size_t); - #else - extern void *__builtin_alloca(); - #endif #else - #ifdef __STDC__ extern void *alloca(size_t); - #else - extern void *alloca(); - #endif #endif /* defined(__BUILTIN_VA_ARG_INCR) || defined(__sparc) ... */ #ifdef __cplusplus } --- 54,68 ----