From: Neal Norwitz Date: Mon, 20 Mar 2006 06:33:01 +0000 (+0000) Subject: Get Py_DEPRECATED to work with gcc 4.x too X-Git-Tag: v2.5a0~164 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3dd8be414eb00700965428902e12c073ab97728f;p=thirdparty%2FPython%2Fcpython.git Get Py_DEPRECATED to work with gcc 4.x too --- diff --git a/Include/pyport.h b/Include/pyport.h index 046516852bc8..ae19d6fc1d5f 100644 --- a/Include/pyport.h +++ b/Include/pyport.h @@ -406,7 +406,8 @@ extern "C" { * typedef int T1 Py_DEPRECATED(2.4); * extern int x() Py_DEPRECATED(2.5); */ -#if defined(__GNUC__) && (__GNUC__ == 3) && (__GNUC_MINOR__ >= 1) +#if defined(__GNUC__) && ((__GNUC__ >= 4) || \ + (__GNUC__ == 3) && (__GNUC_MINOR__ >= 1)) #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) #else #define Py_DEPRECATED(VERSION_UNUSED)