]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Move alloca-related preprocessor code into system.h.
authorJim Meyering <jim@meyering.net>
Mon, 3 Feb 1997 05:08:19 +0000 (05:08 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 3 Feb 1997 05:08:19 +0000 (05:08 +0000)
src/join.c
src/od.c

index 09aaf2bedbd9d202cb6aea2b564a242fffbb4dea..ec7af19ee4f9ee09cd1ad63516a7550ee93c7674 100644 (file)
 
 #include <config.h>
 
-#ifdef __GNUC__
-#define alloca __builtin_alloca
-#else /* not __GNUC__ */
-#if HAVE_ALLOCA_H
-#include <alloca.h>
-#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
 
index b808aeb947338c17d6f405d6a3eb5e3978f289c8..461a5bffce84f2841997917c0532372e7eab9dfa 100644 (file)
--- a/src/od.c
+++ b/src/od.c
 
 /* Written by Jim Meyering.  */
 
-/* AIX requires this to be the first thing in the file.  */
 #include <config.h>
 
-#ifdef __GNUC__
-#define alloca __builtin_alloca
-#else /* not __GNUC__ */
-#if HAVE_ALLOCA_H
-#include <alloca.h>
-#else /* not HAVE_ALLOCA_H */
-#ifdef _AIX
- #pragma alloca
-#else /* not _AIX */
-#ifdef _WIN32
-#include <malloc.h>
-#include <io.h>
-#else
-char *alloca ();
-#endif /* not _WIN32 */
-#endif /* not _AIX */
-#endif /* not HAVE_ALLOCA_H */
-#endif /* not __GNUC__ */
-
 #include <stdio.h>
 #include <assert.h>
 #include <getopt.h>