summaryrefslogtreecommitdiffstats
path: root/Include/pyerrors.h
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-06-04 01:15:15 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-06-04 01:15:15 (GMT)
commitca75b000695f4d98cc4ee8264734e17c9b05cd63 (patch)
treecf2b71fdfaf072b433d5e58329d5f465986952f2 /Include/pyerrors.h
parent8df1397a8381668bcd77b9a6630da9ba2e9bbb1e (diff)
downloadcpython-ca75b000695f4d98cc4ee8264734e17c9b05cd63.zip
cpython-ca75b000695f4d98cc4ee8264734e17c9b05cd63.tar.gz
cpython-ca75b000695f4d98cc4ee8264734e17c9b05cd63.tar.bz2
__GNUC__ does not imply gcc version is present, so just check for version (closes #14994)
Diffstat (limited to 'Include/pyerrors.h')
-rw-r--r--Include/pyerrors.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/pyerrors.h b/Include/pyerrors.h
index fb6281c..cfae922 100644
--- a/Include/pyerrors.h
+++ b/Include/pyerrors.h
@@ -87,7 +87,7 @@ PyAPI_FUNC(void) PyErr_GetExcInfo(PyObject **, PyObject **, PyObject **);
PyAPI_FUNC(void) PyErr_SetExcInfo(PyObject *, PyObject *, PyObject *);
#if defined(__clang__) || \
- (defined(__GNUC__) && \
+ (defined(__GNUC_MAJOR__) && \
((__GNUC_MAJOR__ >= 3) || \
(__GNUC_MAJOR__ == 2) && (__GNUC_MINOR__ >= 5)))
#define _Py_NO_RETURN __attribute__((__noreturn__))