* src/sys2.h: Remove alloca-related block.
authorJim Meyering <jim@meyering.net>
Sat, 12 Jul 2003 11:40:03 +0000 (11:40 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 12 Jul 2003 11:40:03 +0000 (11:40 +0000)
* src/system.h: Include <alloca.h> here, instead.

src/sys2.h
src/system.h

index a4b4ade..b6f8577 100644 (file)
 # define RETSIGTYPE void
 #endif
 
-#if __GNUC__
-# ifndef alloca
-#  define alloca __builtin_alloca
-# endif
-#else
-# if HAVE_ALLOCA_H
-#  include <alloca.h>
-# else
-#  ifdef _AIX
- #  pragma alloca
-#  else
-#   ifdef _WIN32
-#    include <malloc.h>
-#    include <io.h>
-#   else
-#    ifndef alloca
-char *alloca ();
-#    endif
-#   endif
-#  endif
-# endif
-#endif
-
 #ifdef __DJGPP__
   /* We need the declaration of setmode.  */
 # include <io.h>
index 387a136..1c212d4 100644 (file)
@@ -15,6 +15,8 @@
    along with this program; if not, write to the Free Software Foundation,
    Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
+#include <alloca.h>
+
 /* Include sys/types.h before this file.  */
 
 #if 2 <= __GLIBC__ && 2 <= __GLIBC_MINOR__