summaryrefslogtreecommitdiffstats
path: root/Include/pymacro.h
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2012-09-23 14:15:01 (GMT)
committerChristian Heimes <christian@cheimes.de>2012-09-23 14:15:01 (GMT)
commitfd0ddab97ba458ef00deab9ff846ca11c510f4e1 (patch)
treee38f51cf4ff77912dbcd8b92aa08bd07cc6369d2 /Include/pymacro.h
parent3b9493b53cadbe49055d8e7bef5da391c090e652 (diff)
downloadcpython-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/pymacro.h')
-rw-r--r--Include/pymacro.h2
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) \