1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-09-01 02:34:55 +00:00

Avoid using variable size arrays if gcc does not allow them.

This commit is contained in:
Bruno Haible
2006-11-27 14:17:38 +00:00
parent 564569a4df
commit 8a7c1b7666
2 changed files with 8 additions and 1 deletions
+6
View File
@@ -1,3 +1,9 @@
2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
Bruno Haible <bruno@clisp.org>
* lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
if compiling with "gcc -ansi".
2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
Fix some incompatibilities with gcc -ansi -pedantic.
+2 -1
View File
@@ -169,7 +169,8 @@ npgettext_aux (const char *domain,
#include <string.h>
#define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS \
(__GNUC__ >= 3 || __GNUG__ >= 2 /* || __STDC_VERSION__ >= 199901L */ )
(((__GNUC__ >= 3 || __GNUG__ >= 2) && !__STRICT_ANSI__) \
/* || __STDC_VERSION__ >= 199901L */ )
#if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
#include <stdlib.h>