Skip to content
This repository was archived by the owner on Jan 3, 2024. It is now read-only.

Commit 7404cee

Browse files
committed
update to cffi/4a4a9e8abe97
1 parent 3b92969 commit 7404cee

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

extra_tests/cffi_tests/cffi0/backend_tests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import py
33
import pytest
44
import platform
5-
import sys, ctypes
5+
import sys, ctypes, ctypes.util
66
from cffi import FFI, CDefError, FFIError, VerificationMissing
77
from extra_tests.cffi_tests.support import *
88

@@ -13,8 +13,8 @@
1313
SIZE_OF_WCHAR = ctypes.sizeof(ctypes.c_wchar)
1414

1515
def needs_dlopen_none():
16-
if sys.platform == 'win32' and sys.version_info >= (3,):
17-
py.test.skip("dlopen(None) cannot work on Windows for Python 3")
16+
if sys.platform == 'win32' and not ctypes.util.find_library('c'):
17+
py.test.skip("dlopen(None) cannot work on Windows with this runtime")
1818

1919

2020
class BackendTests:

lib_pypy/cffi/_embedding.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,11 +361,11 @@ PyMODINIT_FUNC _CFFI_PYTHON_STARTUP_FUNC(const void *[]); /* forward */
361361

362362
static struct _cffi_pypy_init_s {
363363
const char *name;
364-
void (*func)(const void *[]);
364+
void *func; /* function pointer */
365365
const char *code;
366366
} _cffi_pypy_init = {
367367
_CFFI_MODULE_NAME,
368-
(void(*)(const void *[]))_CFFI_PYTHON_STARTUP_FUNC,
368+
_CFFI_PYTHON_STARTUP_FUNC,
369369
_CFFI_PYTHON_STARTUP_CODE,
370370
};
371371

0 commit comments

Comments
 (0)