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 09aaf2b..ec7af19 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 b808aeb..461a5bf 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>