File tree 2 files changed +7
-2
lines changed 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 29
29
parameters. With correct compiler support, such usage will cause a build
30
30
error (see Py_BUILD_ASSERT_EXPR).
31
31
32
- Written by Rusty Russell, public domain, http://ccodearchive.net/ */
33
- #if (defined(__GNUC__ ) && !defined(__STRICT_ANSI__ ))
32
+ Written by Rusty Russell, public domain, http://ccodearchive.net/
33
+
34
+ Requires at GCC 3.1+ */
35
+ #if (defined(__GNUC__ ) && !defined(__STRICT_ANSI__ ) && \
36
+ ((__GNUC__ == 3 ) && (__GNU_MINOR__ >= 1 )) || (__GNUC__ >= 4 ))
34
37
/* Two gcc extensions.
35
38
&a[0] degrades to a pointer: a different type from an array */
36
39
#define Py_ARRAY_LENGTH (array ) \
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ What's New in Python 3.3.1?
12
12
Core and Builtins
13
13
-----------------
14
14
15
+ - Issue #16881: Fix Py_ARRAY_LENGTH macro for GCC < 3.1.
16
+
15
17
- Issue #16856: Fix a segmentation fault from calling repr() on a dict with
16
18
a key whose repr raise an exception.
17
19
You can’t perform that action at this time.
0 commit comments