Commits

Kirill Simonov committed 58210b2

Added a MS VC 6.0 compatibility hack against Cython-generated C sources.

Comments (0)

Files changed (2)

 #define PyString_FromStringAndSize  PyBytes_FromStringAndSize
 
 #endif
+
+#ifdef _MSC_VER	/* MS Visual C++ 6.0 */
+#if _MSC_VER == 1200
+
+#define PyLong_FromUnsignedLongLong(z)	PyInt_FromLong(i)
+
+#endif
+#endif
 #define=YAML_DECLARE_STATIC
 
 # The following options are used to build PyYAML Windows installer
-# for Python 2.6 on my PC:
+# for Python 2.6 and Python 3.0 on my PC:
 #include_dirs=../../../libyaml/tags/0.1.2/include
 #library_dirs=../../../libyaml/tags/0.1.2/win32/vs2008/output/release/lib
 #define=YAML_DECLARE_STATIC
-
-# The following options are used to build PyYAML Windows installer
-# for Python 3.0 on my PC:
-#include_dirs=../../../libyaml/tags/0.1.2/include
-#library_dirs=../../../libyaml/tags/0.1.2/win32/vs2008/output/release/lib
-#define=YAML_DECLARE_STATIC