]> granicus.if.org Git - python/commitdiff
GCC doesn't support typeof in strict ansi mode (e.g. -ansi or -std=c89)
authorChristian Heimes <christian@cheimes.de>
Sun, 23 Sep 2012 14:15:01 +0000 (16:15 +0200)
committerChristian Heimes <christian@cheimes.de>
Sun, 23 Sep 2012 14:15:01 +0000 (16:15 +0200)
Include/pymacro.h

index 1dc0c61653c981679ca7d7f61c42c37f4ba7e3fb..f3001f43afac391b615f55d34ef3365e3e7a4e11 100644 (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) \