[Python-checkins] r43160 - python/trunk/Include/pyport.h
neal.norwitz
python-checkins at python.org
Mon Mar 20 07:33:01 CET 2006
Author: neal.norwitz
Date: Mon Mar 20 07:33:01 2006
New Revision: 43160
Modified:
python/trunk/Include/pyport.h
Log:
Get Py_DEPRECATED to work with gcc 4.x too
Modified: python/trunk/Include/pyport.h
==============================================================================
--- python/trunk/Include/pyport.h (original)
+++ python/trunk/Include/pyport.h Mon Mar 20 07:33:01 2006
@@ -406,7 +406,8 @@
* 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)
More information about the Python-checkins
mailing list