]> granicus.if.org Git - python/commitdiff
The #warning directive is a gcc extension to standard C,
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Tue, 7 Oct 2008 21:27:43 +0000 (21:27 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Tue, 7 Oct 2008 21:27:43 +0000 (21:27 +0000)
and Microsoft compilers spells it differently.

Include/intobject.h

index 8385d34d9d451d07255bea338b0475183bf3b3d6..041c9f7c307a29fd48818692cb8bc66f458deb9a 100644 (file)
 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