mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
GCC doesn't support typeof in strict ansi mode (e.g. -ansi or -std=c89)
This commit is contained in:
parent
b8cd700155
commit
ab816b5c85
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue