mirror of https://github.com/python/cpython
GCC doesn't support typeof in strict ansi mode (e.g. -ansi or -std=c89)
This commit is contained in:
parent
b8cd700155
commit
ab816b5c85
|
@ -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) \
|
||||
|
|
Loading…
Reference in New Issue