mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
__GNUC__ does not imply gcc version is present, so just check for version (closes #14994)
This commit is contained in:
parent
8df1397a83
commit
ca75b00069
1 changed files with 1 additions and 1 deletions
|
@ -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__))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue