Only g++ supports variable-size arrays nowadays.
[gnulib.git] / lib / gettext.h
index 6e4d5ea..de3850c 100644 (file)
@@ -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 <stdlib.h>