From ca75b000695f4d98cc4ee8264734e17c9b05cd63 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 3 Jun 2012 18:15:15 -0700 Subject: __GNUC__ does not imply gcc version is present, so just check for version (closes #14994) --- Include/pyerrors.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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__)) -- cgit v0.12