From bcbfa645392fcbaf67a435577debfb7c2699aed0 Mon Sep 17 00:00:00 2001 From: Amaury Forgeot d'Arc Date: Tue, 7 Oct 2008 21:27:43 +0000 Subject: [PATCH] The #warning directive is a gcc extension to standard C, and Microsoft compilers spells it differently. --- Include/intobject.h | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.50.1