mirror of
https://github.com/python/cpython.git
synced 2025-11-25 12:44:13 +00:00
Get Py_DEPRECATED to work with gcc 4.x too
This commit is contained in:
parent
24078c5c4f
commit
3dd8be414e
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue