[Python-checkins] cpython: __GNUC__ does not imply gcc version is present, so just check for version
benjamin.peterson
python-checkins at python.org
Mon Jun 4 03:18:26 CEST 2012
http://hg.python.org/cpython/rev/696d3631a4a1
changeset: 77335:696d3631a4a1
user: Benjamin Peterson <benjamin at python.org>
date: Sun Jun 03 18:15:15 2012 -0700
summary:
__GNUC__ does not imply gcc version is present, so just check for version (closes #14994)
files:
Include/pyerrors.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Include/pyerrors.h b/Include/pyerrors.h
--- a/Include/pyerrors.h
+++ b/Include/pyerrors.h
@@ -87,7 +87,7 @@
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__))
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list