summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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) \