From 3dd8be414eb00700965428902e12c073ab97728f Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Mon, 20 Mar 2006 06:33:01 +0000 Subject: [PATCH] Get Py_DEPRECATED to work with gcc 4.x too --- Include/pyport.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Include/pyport.h b/Include/pyport.h index 046516852b..ae19d6fc1d 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) -- 2.40.0