From: Jim Meyering Date: Mon, 3 Feb 1997 05:08:19 +0000 (+0000) Subject: Move alloca-related preprocessor code into system.h. X-Git-Tag: SH-UTILS-1_16a~272 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e8bcfd934a4a0f61b85174c8690241f7d0c91e47;p=platform%2Fupstream%2Fcoreutils.git Move alloca-related preprocessor code into system.h. --- diff --git a/src/join.c b/src/join.c index 09aaf2b..ec7af19 100644 --- a/src/join.c +++ b/src/join.c @@ -19,20 +19,6 @@ #include -#ifdef __GNUC__ -#define alloca __builtin_alloca -#else /* not __GNUC__ */ -#if HAVE_ALLOCA_H -#include -#else /* not HAVE_ALLOCA_H */ -#ifdef _AIX - #pragma alloca -#else /* not _AIX */ -char *alloca (); -#endif /* not _AIX */ -#endif /* not HAVE_ALLOCA_H */ -#endif /* not __GNUC__ */ - /* Get isblank from GNU libc. */ #define _GNU_SOURCE diff --git a/src/od.c b/src/od.c index b808aeb..461a5bf 100644 --- a/src/od.c +++ b/src/od.c @@ -17,28 +17,8 @@ /* Written by Jim Meyering. */ -/* AIX requires this to be the first thing in the file. */ #include -#ifdef __GNUC__ -#define alloca __builtin_alloca -#else /* not __GNUC__ */ -#if HAVE_ALLOCA_H -#include -#else /* not HAVE_ALLOCA_H */ -#ifdef _AIX - #pragma alloca -#else /* not _AIX */ -#ifdef _WIN32 -#include -#include -#else -char *alloca (); -#endif /* not _WIN32 */ -#endif /* not _AIX */ -#endif /* not HAVE_ALLOCA_H */ -#endif /* not __GNUC__ */ - #include #include #include