[pypy-commit] cffi default: msvc support

arigo pypy.commits at gmail.com
Wed Aug 8 05:28:42 EDT 2018


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r3136:ce24777ce311
Date: 2018-08-08 11:28 +0200
http://bitbucket.org/cffi/cffi/changeset/ce24777ce311/

Log:	msvc support

diff --git a/c/misc_thread_common.h b/c/misc_thread_common.h
--- a/c/misc_thread_common.h
+++ b/c/misc_thread_common.h
@@ -44,11 +44,13 @@
        PyThreadState any more, which are all supposed to be freed anyway
        very soon after the present cffi_tls_shutdown() function is called.
      */
+    PyObject *ofn;
+
     TLS_DEL_LOCK();
     cffi_tls_delete = 0;   /* Py_Finalize() called */
     TLS_DEL_UNLOCK();
 
-    PyObject *ofn = old_exitfunc;
+    ofn = old_exitfunc;
     if (ofn == NULL)
     {
         Py_INCREF(Py_None);


More information about the pypy-commit mailing list