From: Bruno Haible Date: Wed, 25 Oct 2006 16:59:24 +0000 (+0000) Subject: Only g++ supports variable sized arrays. X-Git-Tag: 0.16.x-branchpoint~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72a55b19510c69b3055bbb50125165eece2c4ab3;p=thirdparty%2Fgettext.git Only g++ supports variable sized arrays. --- diff --git a/gnulib-local/ChangeLog b/gnulib-local/ChangeLog index be4f35a06..795936a44 100644 --- a/gnulib-local/ChangeLog +++ b/gnulib-local/ChangeLog @@ -5,7 +5,7 @@ 2006-10-25 Bruno Haible * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to - false for PGI C++ and Sun C++ compilers. + false for non-gcc C++ compilers. Reported by Nelson H. F. Beebe . 2006-10-24 Bruno Haible diff --git a/gnulib-local/lib/gettext.h b/gnulib-local/lib/gettext.h index 74b08f128..544406ae9 100644 --- a/gnulib-local/lib/gettext.h +++ b/gnulib-local/lib/gettext.h @@ -164,12 +164,8 @@ npgettext_aux (const char *domain, #include -/* 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 && !(defined __PGI || defined __SUNPRO_CC))) + (__GNUC__ >= 3 || (defined __cplusplus && defined __GNUC__)) #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS #include