The #warning directive is a gcc extension to standard C,

and Microsoft compilers spells it differently.
This commit is contained in:
Amaury Forgeot d'Arc 2008-10-07 21:27:43 +00:00
parent d0ca955d9f
commit bcbfa64539

View file

@ -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