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:
@@ -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
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user