]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
More portability stuff.
authorBruno Haible <bruno@clisp.org>
Wed, 31 Oct 2001 20:44:25 +0000 (20:44 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 21 Jun 2009 20:45:58 +0000 (22:45 +0200)
lib/ChangeLog
lib/javacomp.c
lib/javaexec.c

index 1fb52a9bfdbf9c7fa8ca28179b67c5b86e5a1e31..a457b06d1c65c65e5a3f7c89185c247c677aa0a5 100644 (file)
@@ -10,6 +10,8 @@
        * wait-process.c (EXIT_FAILURE): Likewise.
        * xerror.c (EXIT_FAILURE): Likewise.
        (xasprintf): Use VA_START instead of va_start.
+       * javacomp.c: Include alloca() declaration stuff.
+       * javaexec.c: Likewise.
 
 2001-10-28  Bruno Haible  <haible@clisp.cons.org>
 
index 556bffed851b0477c1e604253fd40949bd0019e6..d2f9e173dbfc9e105501ea8b1880485fea81605b 100644 (file)
 #include "error.h"
 #include "libgettext.h"
 
+#ifdef __GNUC__
+# ifndef alloca
+#  define alloca __builtin_alloca
+# endif
+#else
+# if HAVE_ALLOCA_H
+#  include <alloca.h>
+# else
+#  ifdef _AIX
+ #pragma alloca
+#  else
+#   ifdef __hpux /* This section must match that of bison generated files. */
+#    ifdef __cplusplus
+extern "C" void *alloca (unsigned int);
+#    else /* not __cplusplus */
+void *alloca ();
+#    endif /* not __cplusplus */
+#   else /* not __hpux */
+#    ifndef alloca
+char *alloca ();
+#    endif
+#   endif /* __hpux */
+#  endif
+# endif
+#endif
+
 #define _(str) gettext (str)
 
 
index 4d473933bf428f7bcb8939aaa2300839ce083155..79682ee7b4e87b786eb53037c9cf5d08cdc14ea9 100644 (file)
 #include "error.h"
 #include "libgettext.h"
 
+#ifdef __GNUC__
+# ifndef alloca
+#  define alloca __builtin_alloca
+# endif
+#else
+# if HAVE_ALLOCA_H
+#  include <alloca.h>
+# else
+#  ifdef _AIX
+ #pragma alloca
+#  else
+#   ifdef __hpux /* This section must match that of bison generated files. */
+#    ifdef __cplusplus
+extern "C" void *alloca (unsigned int);
+#    else /* not __cplusplus */
+void *alloca ();
+#    endif /* not __cplusplus */
+#   else /* not __hpux */
+#    ifndef alloca
+char *alloca ();
+#    endif
+#   endif /* __hpux */
+#  endif
+# endif
+#endif
+
 #define _(str) gettext (str)