Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ca75b00

Browse files
committed
__GNUC__ does not imply gcc version is present, so just check for version (closes #14994)
1 parent 8df1397 commit ca75b00

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Include/pyerrors.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ PyAPI_FUNC(void) PyErr_GetExcInfo(PyObject **, PyObject **, PyObject **);
8787
PyAPI_FUNC(void) PyErr_SetExcInfo(PyObject *, PyObject *, PyObject *);
8888

8989
#if defined(__clang__) || \
90-
(defined(__GNUC__) && \
90+
(defined(__GNUC_MAJOR__) && \
9191
((__GNUC_MAJOR__ >= 3) || \
9292
(__GNUC_MAJOR__ == 2) && (__GNUC_MINOR__ >= 5)))
9393
#define _Py_NO_RETURN __attribute__((__noreturn__))

0 commit comments

Comments
 (0)