summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-10-07 21:27:43 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-10-07 21:27:43 (GMT)
commitbcbfa645392fcbaf67a435577debfb7c2699aed0 (patch)
tree12bdfbab522f26bace12eb3e1a55dddd91bc5434
parentd0ca955d9f8ff13af06db52bef1642b80832c0c3 (diff)
downloadcpython-bcbfa645392fcbaf67a435577debfb7c2699aed0.zip
cpython-bcbfa645392fcbaf67a435577debfb7c2699aed0.tar.gz
cpython-bcbfa645392fcbaf67a435577debfb7c2699aed0.tar.bz2
The #warning directive is a gcc extension to standard C,
and Microsoft compilers spells it differently.
-rw-r--r--Include/intobject.h4
1 files changed, 4 insertions, 0 deletions
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