+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.
+ Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
+
2006-10-24 Bruno Haible <bruno@clisp.org>
* lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
#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>