From 72a55b19510c69b3055bbb50125165eece2c4ab3 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 25 Oct 2006 16:59:24 +0000 Subject: [PATCH] Only g++ supports variable sized arrays. --- gnulib-local/ChangeLog | 2 +- gnulib-local/lib/gettext.h | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) 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 -- 2.47.2