Author: mattip <matti.pi...@gmail.com> Branch: Changeset: r71515:13c05fef6513 Date: 2014-05-14 14:42 +0300 http://bitbucket.org/pypy/pypy/changeset/13c05fef6513/
Log: MSVC link must find all functions, so provide dummy implementations diff --git a/rpython/translator/c/src/allocator.c b/rpython/translator/c/src/allocator.c --- a/rpython/translator/c/src/allocator.c +++ b/rpython/translator/c/src/allocator.c @@ -24,5 +24,10 @@ # include "src/obmalloc.c" #endif +#elif defined _MSC_VER +/* link will fail without some kind of definition for the functions */ + void *PyObject_Malloc(size_t n) { return NULL; } + void *PyObject_Realloc(void *p, size_t n) { return NULL; } + void PyObject_Free(void *p) { } #endif /* PYPY_STANDALONE */ _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit