From ab816b5c85aeb4cf09542265423e68354a236bb3 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Sun, 23 Sep 2012 16:15:01 +0200 Subject: GCC doesn't support typeof in strict ansi mode (e.g. -ansi or -std=c89) --- Include/pymacro.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) \ -- cgit v0.12