Arfrever Frehtes Taifersar Arahesis added the comment: 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). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19569> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com