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 8385d34..041c9f7 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