Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r1100:beba0759d16a
Date: 2012-12-27 18:34 +0100
http://bitbucket.org/cffi/cffi/changeset/beba0759d16a/

Log:    Add the _WIN constant on _cffi_backend (unused for now)

diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c
--- a/c/_cffi_backend.c
+++ b/c/_cffi_backend.c
@@ -4992,6 +4992,14 @@
         PyModule_AddIntConstant(m, "FFI_CDECL", FFI_DEFAULT_ABI) < 0 ||
 #endif
 
+#ifdef MS_WIN32
+#  ifdef _WIN64
+        PyModule_AddIntConstant(m, "_WIN", 64) < 0 ||   /* win64 */
+#  else
+        PyModule_AddIntConstant(m, "_WIN", 32) < 0 ||   /* win32 */
+#  endif
+#endif
+
         PyModule_AddIntConstant(m, "RTLD_LAZY",   RTLD_LAZY) < 0 ||
         PyModule_AddIntConstant(m, "RTLD_NOW",    RTLD_NOW) < 0 ||
         PyModule_AddIntConstant(m, "RTLD_GLOBAL", RTLD_GLOBAL) < 0 ||
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to