Commit 3dd8be41 authored by Neal Norwitz's avatar Neal Norwitz

Get Py_DEPRECATED to work with gcc 4.x too

parent 24078c5c
...@@ -406,7 +406,8 @@ extern "C" { ...@@ -406,7 +406,8 @@ extern "C" {
* typedef int T1 Py_DEPRECATED(2.4); * typedef int T1 Py_DEPRECATED(2.4);
* extern int x() Py_DEPRECATED(2.5); * 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__)) #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
#else #else
#define Py_DEPRECATED(VERSION_UNUSED) #define Py_DEPRECATED(VERSION_UNUSED)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment