Message227822
There is already Py_DEPRECATED in Include/pyport.h:
#if defined(__GNUC__) && ((__GNUC__ >= 4) || \
(__GNUC__ == 3) && (__GNUC_MINOR__ >= 1))
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
#else
#define Py_DEPRECATED(VERSION_UNUSED)
#endif
You can add this before '#else':
#elif defined(_MSC_VER) && _MSC_VER >= 1300
#define Py_DEPRECATED(VERSION_UNUSED) __declspec(deprecated)
Py_DEPRECATED is not used since Python 3.0 (it is still used in 2.7). |
|
Date |
User |
Action |
Args |
2014-09-29 20:04:53 | Arfrever | set | recipients:
+ Arfrever, pitrou, vstinner, ezio.melotti, serhiy.storchaka, eryksun |
2014-09-29 20:04:53 | Arfrever | set | messageid: <1412021093.54.0.574395557269.issue19569@psf.upfronthosting.co.za> |
2014-09-29 20:04:53 | Arfrever | link | issue19569 messages |
2014-09-29 20:04:53 | Arfrever | create | |
|