summaryrefslogtreecommitdiffstats
path: root/Include
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)
commitab816b5c85aeb4cf09542265423e68354a236bb3 (patch)
tree46d20ec2aaaa0fa4551b88c1bfd1ef169dee829a /Include
parentb8cd700155960ef720d4a8845fccf9d9f55ce105 (diff)
downloadcpython-ab816b5c85aeb4cf09542265423e68354a236bb3.zip
cpython-ab816b5c85aeb4cf09542265423e68354a236bb3.tar.gz
cpython-ab816b5c85aeb4cf09542265423e68354a236bb3.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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/pymacro.h b/Include/pymacro.h
index 1dc0c61..f3001f4 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) \