]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Only g++ supports variable sized arrays.
authorBruno Haible <bruno@clisp.org>
Wed, 25 Oct 2006 16:59:24 +0000 (16:59 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:14:14 +0000 (12:14 +0200)
gnulib-local/ChangeLog
gnulib-local/lib/gettext.h

index be4f35a06f7daf483f6cb9b9d603c2f7172361d5..795936a441ddea3ebb9f4aa7d4f174c0a9ed12a8 100644 (file)
@@ -5,7 +5,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>
index 74b08f12809e2e0231b97fc7b617e786dc92a039..544406ae9f6d520bb19f001c5d2348e4b2c19549 100644 (file)
@@ -164,12 +164,8 @@ 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 && !(defined __PGI || defined __SUNPRO_CC)))
+  (__GNUC__ >= 3 || (defined __cplusplus && defined __GNUC__))
 
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
 #include <stdlib.h>