]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
__GNUC__ does not imply gcc version is present, so just check for version (closes...
authorBenjamin Peterson <benjamin@python.org>
Mon, 4 Jun 2012 01:15:15 +0000 (18:15 -0700)
committerBenjamin Peterson <benjamin@python.org>
Mon, 4 Jun 2012 01:15:15 +0000 (18:15 -0700)
Include/pyerrors.h

index fb6281ca70e754b713d8f93001985a8866b67cab..cfae92232f2c64dd6495a48b39087f6e37df6734 100644 (file)
@@ -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__))