[pypy-commit] pypy default: a 'temporary fix' seems to become permanent, document

arigo pypy.commits at gmail.com
Sat Feb 25 01:41:06 EST 2017


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r90344:dbf7a1921b61
Date: 2017-02-25 07:40 +0100
http://bitbucket.org/pypy/pypy/changeset/dbf7a1921b61/

Log:	a 'temporary fix' seems to become permanent, document

diff --git a/pypy/module/cpyext/api.py b/pypy/module/cpyext/api.py
--- a/pypy/module/cpyext/api.py
+++ b/pypy/module/cpyext/api.py
@@ -1235,6 +1235,17 @@
 
 def write_header(header_name, decls):
     lines = [
+        '''
+#ifdef _WIN64
+/* this check is for sanity, but also because the 'temporary fix'
+   below seems to become permanent and would cause unexpected
+   nonsense on Win64---but note that it's not the only reason for
+   why Win64 is not supported!  If you want to help, see
+   http://doc.pypy.org/en/latest/windows.html#what-is-missing-for-a-full-64-bit-translation
+   */
+#  error "PyPy does not support 64-bit on Windows.  Use Win32"
+#endif
+''',
         '#define Signed   long           /* xxx temporary fix */',
         '#define Unsigned unsigned long  /* xxx temporary fix */',
         '',] + decls + [


More information about the pypy-commit mailing list