From: Amaury Forgeot d'Arc Date: Tue, 7 Oct 2008 21:27:43 +0000 (+0000) Subject: The #warning directive is a gcc extension to standard C, X-Git-Tag: v3.0rc2~85 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bcbfa645392fcbaf67a435577debfb7c2699aed0;p=python The #warning directive is a gcc extension to standard C, and Microsoft compilers spells it differently. --- 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