[pypy-svn] r79844 - pypy/trunk/pypy/module/cpyext/include
arigo at codespeak.net
arigo at codespeak.net
Mon Dec 6 15:11:27 CET 2010
Author: arigo
Date: Mon Dec 6 15:11:24 2010
New Revision: 79844
Added:
pypy/trunk/pypy/module/cpyext/include/fileobject.h
Modified:
pypy/trunk/pypy/module/cpyext/include/Python.h
Log:
Two small fixes to allow PIL to compile out of the box:
* add some #included headers
* add Py_FileSystemDefaultEncoding, always NULL for now
Modified: pypy/trunk/pypy/module/cpyext/include/Python.h
==============================================================================
--- pypy/trunk/pypy/module/cpyext/include/Python.h (original)
+++ pypy/trunk/pypy/module/cpyext/include/Python.h Mon Dec 6 15:11:24 2010
@@ -8,6 +8,8 @@
# include <stddef.h>
# include <limits.h>
# include <math.h>
+# include <errno.h>
+# include <unistd.h>
# define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
# define PyAPI_FUNC(RTYPE) RTYPE
# define PyAPI_DATA(RTYPE) extern RTYPE
@@ -103,6 +105,7 @@
#include "sliceobject.h"
#include "datetime.h"
#include "pystate.h"
+#include "fileobject.h"
// XXX This shouldn't be included here
#include "structmember.h"
Added: pypy/trunk/pypy/module/cpyext/include/fileobject.h
==============================================================================
--- (empty file)
+++ pypy/trunk/pypy/module/cpyext/include/fileobject.h Mon Dec 6 15:11:24 2010
@@ -0,0 +1 @@
+#define Py_FileSystemDefaultEncoding NULL
More information about the Pypy-commit
mailing list