diff options
author | Bruno Haible <bruno@clisp.org> | 2006-10-25 13:14:37 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:14:14 +0200 |
commit | 353d8f8e26521ed178ff3977bfb80c1b7023a752 (patch) | |
tree | 92b47ace75390fa1278deb21854b7234ee31534a | |
parent | aad7a9eefba9ed864125e6ca6b25c65a114f2622 (diff) | |
download | external_gettext-353d8f8e26521ed178ff3977bfb80c1b7023a752.zip external_gettext-353d8f8e26521ed178ff3977bfb80c1b7023a752.tar.gz external_gettext-353d8f8e26521ed178ff3977bfb80c1b7023a752.tar.bz2 |
Some C++ compilers don't support variable-size arrays.
-rw-r--r-- | gnulib-local/ChangeLog | 6 | ||||
-rw-r--r-- | gnulib-local/lib/gettext.h | 6 |
2 files changed, 11 insertions, 1 deletions
diff --git a/gnulib-local/ChangeLog b/gnulib-local/ChangeLog index da11f2c..be4f35a 100644 --- a/gnulib-local/ChangeLog +++ b/gnulib-local/ChangeLog @@ -2,6 +2,12 @@ * gettext-0.16 released. +2006-10-25 Bruno Haible <bruno@clisp.org> + + * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to + false for PGI C++ and Sun C++ compilers. + Reported by Nelson H. F. Beebe <beebe@math.utah.edu>. + 2006-10-24 Bruno Haible <bruno@clisp.org> * modules/gettext-tools-misc (Makefile.am): Add also $(top_srcdir) to diff --git a/gnulib-local/lib/gettext.h b/gnulib-local/lib/gettext.h index 9acae72..74b08f1 100644 --- a/gnulib-local/lib/gettext.h +++ b/gnulib-local/lib/gettext.h @@ -164,8 +164,12 @@ npgettext_aux (const char *domain, #include <string.h> +/* GCC supports variable-size arrays in C and C++ mode. + ISO C++ supports variable-size arrays, but some older PGI and Sun compilers + don't. */ #define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS \ - (__GNUC__ >= 3 || defined __cplusplus) + (__GNUC__ >= 3 \ + || (defined __cplusplus && !(defined __PGI || defined __SUNPRO_CC))) #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS #include <stdlib.h> |