From: Benjamin Peterson Date: Mon, 4 Jun 2012 01:15:15 +0000 (-0700) Subject: __GNUC__ does not imply gcc version is present, so just check for version (closes... X-Git-Tag: v3.3.0b1~290^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ca75b000695f4d98cc4ee8264734e17c9b05cd63;p=thirdparty%2FPython%2Fcpython.git __GNUC__ does not imply gcc version is present, so just check for version (closes #14994) --- diff --git a/Include/pyerrors.h b/Include/pyerrors.h index fb6281ca70e7..cfae92232f2c 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__))