Skip to content

Commit 025343f

Browse files
committed
Add a missing patch to ctypes for windows
1 parent 9fdd140 commit 025343f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

cmake/patches-win32/05-libffi-latest.patch

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8517,3 +8517,22 @@ index 0000000..7489dab
85178517
+ /* End of DW_CFA_xxx CFI instructions. */
85188518
+ .align 4
85198519
+.LEFDE5:
8520+
--- a/Modules/_ctypes/callproc.c.old 2011-04-25 22:31:55.239558348 +0000
8521+
+++ b/Modules/_ctypes/callproc.c 2011-04-25 22:32:13.390364916 +0000
8522+
@@ -771,7 +771,7 @@
8523+
ffi_cif cif;
8524+
int cc;
8525+
#ifdef MS_WIN32
8526+
- int delta;
8527+
+ int delta = 0;
8528+
#ifndef DONT_USE_SEH
8529+
DWORD dwExceptionCode = 0;
8530+
EXCEPTION_RECORD record;
8531+
@@ -822,7 +822,6 @@
8532+
#ifndef DONT_USE_SEH
8533+
__try {
8534+
#endif
8535+
- delta =
8536+
#endif
8537+
ffi_call(&cif, (void *)pProc, resmem, avalues);
8538+
#ifdef MS_WIN32

0 commit comments

Comments
 (0)