diff options
author | Christian Heimes <christian@cheimes.de> | 2012-09-23 14:15:01 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2012-09-23 14:15:01 (GMT) |
commit | fd0ddab97ba458ef00deab9ff846ca11c510f4e1 (patch) | |
tree | e38f51cf4ff77912dbcd8b92aa08bd07cc6369d2 /Include | |
parent | 3b9493b53cadbe49055d8e7bef5da391c090e652 (diff) | |
download | cpython-fd0ddab97ba458ef00deab9ff846ca11c510f4e1.zip cpython-fd0ddab97ba458ef00deab9ff846ca11c510f4e1.tar.gz cpython-fd0ddab97ba458ef00deab9ff846ca11c510f4e1.tar.bz2 |
GCC doesn't support typeof in strict ansi mode (e.g. -ansi or -std=c89)
Diffstat (limited to 'Include')
-rw-r--r-- | Include/pymacro.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/pymacro.h b/Include/pymacro.h index ce1cbef..52e8ee3 100644 --- a/Include/pymacro.h +++ b/Include/pymacro.h @@ -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) \ |