Skip to content

Commit

Permalink
Added a MS VC 6.0 compatibility hack against Cython-generated C sources.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.pyyaml.org/pyyaml/trunk@339 18f92427-320e-0410-9341-c67f048884a3
  • Loading branch information
xi committed Dec 30, 2008
1 parent ca76ff6 commit 0b4873f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
8 changes: 8 additions & 0 deletions ext/_yaml.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,11 @@
#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
8 changes: 1 addition & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,7 @@
#define=YAML_DECLARE_STATIC

# The following options are used to build PyYAML Windows installer
# for Python 2.6 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:
# 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

0 comments on commit 0b4873f

Please sign in to comment.