summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-03-20 06:33:01 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-03-20 06:33:01 (GMT)
commit3dd8be414eb00700965428902e12c073ab97728f (patch)
treedf6ee5dc67f89c028de12875bbca26544e2db264
parent24078c5c4f868be9950e9257dd9134b4a592e929 (diff)
downloadcpython-3dd8be414eb00700965428902e12c073ab97728f.zip
cpython-3dd8be414eb00700965428902e12c073ab97728f.tar.gz
cpython-3dd8be414eb00700965428902e12c073ab97728f.tar.bz2
Get Py_DEPRECATED to work with gcc 4.x too
-rw-r--r--Include/pyport.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Include/pyport.h b/Include/pyport.h
index 0465168..ae19d6f 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)