diff options
| author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-10-07 21:27:43 +0000 |
|---|---|---|
| committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-10-07 21:27:43 +0000 |
| commit | bcbfa645392fcbaf67a435577debfb7c2699aed0 (patch) | |
| tree | 12bdfbab522f26bace12eb3e1a55dddd91bc5434 /Include/intobject.h | |
| parent | d0ca955d9f8ff13af06db52bef1642b80832c0c3 (diff) | |
| download | cpython-git-bcbfa645392fcbaf67a435577debfb7c2699aed0.tar.gz | |
The #warning directive is a gcc extension to standard C,
and Microsoft compilers spells it differently.
Diffstat (limited to 'Include/intobject.h')
| -rw-r--r-- | Include/intobject.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/intobject.h b/Include/intobject.h index 8385d34d9d..041c9f7c30 100644 --- a/Include/intobject.h +++ b/Include/intobject.h @@ -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 |
