Discussion:
[Python-3000-checkins] r66839 - python/branches/py3k/Include/intobject.h
amaury.forgeotdarc
2008-10-07 21:27:43 UTC
Permalink
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

Loading...