Files
MINGW-packages/mingw-w64-python-matplotlib/001-fix-pointer-declaration.patch
2022-09-20 19:41:20 +01:00

20 lines
717 B
Diff

--- a/src/_tkagg.cpp
+++ b/src/_tkagg.cpp
@@ -231,13 +231,13 @@
{
// Try to fill Tcl/Tk global vars with function pointers. Return whether
// all of them have been filled.
- if (void* ptr = dlsym(lib, "Tcl_SetVar")) {
+ if (auto ptr = dlsym(lib, "Tcl_SetVar")) {
TCL_SETVAR = (Tcl_SetVar_t)ptr;
}
- if (void* ptr = dlsym(lib, "Tk_FindPhoto")) {
+ if (auto ptr = dlsym(lib, "Tk_FindPhoto")) {
TK_FIND_PHOTO = (Tk_FindPhoto_t)ptr;
}
- if (void* ptr = dlsym(lib, "Tk_PhotoPutBlock")) {
+ if (auto ptr = dlsym(lib, "Tk_PhotoPutBlock")) {
TK_PHOTO_PUT_BLOCK = (Tk_PhotoPutBlock_t)ptr;
}
return TCL_SETVAR && TK_FIND_PHOTO && TK_PHOTO_PUT_BLOCK;