Prepare to be used outside glibc without gcc by adding usual alloca
authordrepper <drepper>
Sat, 8 Aug 1998 19:33:26 +0000 (19:33 +0000)
committerdrepper <drepper>
Sat, 8 Aug 1998 19:33:26 +0000 (19:33 +0000)
cruft.

argp/argp-help.c

index baa54c9..616db9b 100644 (file)
 #include <config.h>
 #endif
 
+#ifndef alloca
+# ifdef __GNUC__
+#  define alloca __builtin_alloca
+#  define HAVE_ALLOCA 1
+# else
+#  if defined HAVE_ALLOCA_H || defined _LIBC
+#   include <alloca.h>
+#  else
+#   ifdef _AIX
+ #pragma alloca
+#   else
+#    ifndef alloca
+char *alloca ();
+#    endif
+#   endif
+#  endif
+# endif
+#endif
+
 #include <stddef.h>
 #include <stdlib.h>
 #include <string.h>