GCC doesn't support typeof in strict ansi mode (e.g. -ansi or -std=c89)

This commit is contained in:
Christian Heimes 2012-09-23 16:15:01 +02:00
parent b8cd700155
commit ab816b5c85
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@
error (see Py_BUILD_ASSERT_EXPR).
Written by Rusty Russell, public domain, http://ccodearchive.net/ */
#if defined(__GNUC__)
#if (defined(__GNUC__) && !defined(__STRICT_ANSI__))
/* Two gcc extensions.
&a[0] degrades to a pointer: a different type from an array */
#define Py_ARRAY_LENGTH(array) \