From 4a6f6ccf4f28947ff868115b73434a9c5af32727 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 25 Oct 2006 16:56:37 +0000 Subject: [PATCH] Only g++ supports variable-size arrays nowadays. --- ChangeLog | 2 +- lib/gettext.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index b3cc38c9bf..970fd22528 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,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/lib/gettext.h b/lib/gettext.h index 6e4d5ead8b..de3850cd75 100644 --- a/lib/gettext.h +++ b/lib/gettext.h @@ -167,8 +167,7 @@ npgettext_aux (const char *domain, 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.30.2