[pypy-svn] r73448 - in pypy/branch/cpython-extension/pypy/module/cpyext: . include
afa at codespeak.net
afa at codespeak.net
Tue Apr 6 11:42:14 CEST 2010
Author: afa
Date: Tue Apr 6 11:42:12 2010
New Revision: 73448
Modified:
pypy/branch/cpython-extension/pypy/module/cpyext/api.py
pypy/branch/cpython-extension/pypy/module/cpyext/include/Python.h
Log:
Fixes for Windows: crtdef.h is needed for size_t, and PyTuple_Pack needs to be exported
Modified: pypy/branch/cpython-extension/pypy/module/cpyext/api.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/api.py (original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/api.py Tue Apr 6 11:42:12 2010
@@ -222,6 +222,7 @@
'Py_FatalError', 'PyOS_snprintf', 'PyOS_vsnprintf', 'PyArg_Parse',
'PyArg_ParseTuple', 'PyArg_UnpackTuple', 'PyArg_ParseTupleAndKeywords',
'PyString_FromFormatV', 'PyModule_AddObject', 'Py_BuildValue',
+ 'PyTuple_Pack',
]
TYPES = {}
GLOBALS = { # this needs to include all prebuilt pto, otherwise segfaults occur
Modified: pypy/branch/cpython-extension/pypy/module/cpyext/include/Python.h
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/include/Python.h (original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/include/Python.h Tue Apr 6 11:42:12 2010
@@ -23,6 +23,7 @@
# define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
# define PyAPI_DATA(RTYPE) extern RTYPE
#else
+# include <crtdefs.h>
# define Py_DEPRECATED(VERSION_UNUSED)
# ifdef Py_BUILD_CORE
# define PyAPI_DATA(RTYPE) extern __declspec(dllexport) RTYPE
More information about the Pypy-commit
mailing list