diff options
Diffstat (limited to 'gnulib-local/lib/gettext.h')
-rw-r--r-- | gnulib-local/lib/gettext.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gnulib-local/lib/gettext.h b/gnulib-local/lib/gettext.h index 9acae72..74b08f1 100644 --- a/gnulib-local/lib/gettext.h +++ b/gnulib-local/lib/gettext.h @@ -164,8 +164,12 @@ 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) + (__GNUC__ >= 3 \ + || (defined __cplusplus && !(defined __PGI || defined __SUNPRO_CC))) #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS #include <stdlib.h> |