mirror of
https://github.com/python/cpython.git
synced 2026-01-03 22:12:27 +00:00
The #warning directive is a gcc extension to standard C,
and Microsoft compilers spells it differently.
This commit is contained in:
parent
d0ca955d9f
commit
bcbfa64539
1 changed files with 4 additions and 0 deletions
|
|
@ -11,7 +11,11 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#warning "DeprecationWarning: intobject.h is going to be removed in 3.1"
|
||||
#elif defined(MS_WINDOWS)
|
||||
#pragma message("DeprecationWarning: intobject.h is going to be removed in 3.1")
|
||||
#endif
|
||||
|
||||
#define PyInt_Check(op) PyLong_Check(op)
|
||||
#define PyInt_FromString PyLong_FromString
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue