changeset 7569:8a5e15ab4f03

Only g++ supports variable-size arrays nowadays.
author Bruno Haible <bruno@clisp.org>
date Wed, 25 Oct 2006 16:56:37 +0000
parents cc1b5341518c
children 728bd13a5bda
files ChangeLog lib/gettext.h
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,7 @@
 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.
+	false for non-gcc C++ compilers.
 	Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
 
 2006-10-24  Bruno Haible  <bruno@clisp.org>
--- a/lib/gettext.h
+++ b/lib/gettext.h
@@ -167,8 +167,7 @@
    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 <stdlib.h>