amaury.forgeotdarc
2008-10-07 21:27:43 UTC
Author: amaury.forgeotdarc
Date: Tue Oct 7 23:27:43 2008
New Revision: 66839
Log:
The #warning directive is a gcc extension to standard C,
and Microsoft compilers spells it differently.
Modified:
python/branches/py3k/Include/intobject.h
Modified: python/branches/py3k/Include/intobject.h
==============================================================================
--- python/branches/py3k/Include/intobject.h (original)
+++ python/branches/py3k/Include/intobject.h Tue Oct 7 23:27:43 2008
@@ -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
Date: Tue Oct 7 23:27:43 2008
New Revision: 66839
Log:
The #warning directive is a gcc extension to standard C,
and Microsoft compilers spells it differently.
Modified:
python/branches/py3k/Include/intobject.h
Modified: python/branches/py3k/Include/intobject.h
==============================================================================
--- python/branches/py3k/Include/intobject.h (original)
+++ python/branches/py3k/Include/intobject.h Tue Oct 7 23:27:43 2008
@@ -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