Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8b66ea8

Browse files
jcfrdavidsansome
andcommitted
MinGW support: Add patches-win32/05-libffi-latest.patch
This commit integrates changes originally added to the project as python-cmake-buildsystem/python-cmake-buildsystem@9fdd1408b (Build the ctypes extension differently on Windows, add a patch to bring in the latest version of libffi) and python-cmake-buildsystem/python-cmake-buildsystem@025343fba (Add a missing patch to ctypes for windows) Co-authored-by: David Sansome <[email protected]>
1 parent da80f9b commit 8b66ea8

File tree

12 files changed

+8454
-2
lines changed

12 files changed

+8454
-2
lines changed

Modules/_ctypes/callproc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ static int _call_function_pointer(int flags,
785785
ffi_cif cif;
786786
int cc;
787787
#ifdef MS_WIN32
788-
int delta;
788+
int delta = 0;
789789
#ifndef DONT_USE_SEH
790790
DWORD dwExceptionCode = 0;
791791
EXCEPTION_RECORD record;
@@ -836,7 +836,6 @@ static int _call_function_pointer(int flags,
836836
#ifndef DONT_USE_SEH
837837
__try {
838838
#endif
839-
delta =
840839
#endif
841840
ffi_call(&cif, (void *)pProc, resmem, avalues);
842841
#ifdef MS_WIN32

0 commit comments

Comments
 (0)