Kirill Simonov avatar 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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.