Skip to content

Commit eac65ff

Browse files
QuLogicmeeseeksmachine
authored andcommitted
Backport PR #23947: Fix building on MINGW
1 parent fd4ab64 commit eac65ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/_tkagg.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,13 @@ bool load_tcl_tk(T lib)
231231
{
232232
// Try to fill Tcl/Tk global vars with function pointers. Return whether
233233
// all of them have been filled.
234-
if (void* ptr = dlsym(lib, "Tcl_SetVar")) {
234+
if (auto ptr = dlsym(lib, "Tcl_SetVar")) {
235235
TCL_SETVAR = (Tcl_SetVar_t)ptr;
236236
}
237-
if (void* ptr = dlsym(lib, "Tk_FindPhoto")) {
237+
if (auto ptr = dlsym(lib, "Tk_FindPhoto")) {
238238
TK_FIND_PHOTO = (Tk_FindPhoto_t)ptr;
239239
}
240-
if (void* ptr = dlsym(lib, "Tk_PhotoPutBlock")) {
240+
if (auto ptr = dlsym(lib, "Tk_PhotoPutBlock")) {
241241
TK_PHOTO_PUT_BLOCK = (Tk_PhotoPutBlock_t)ptr;
242242
}
243243
return TCL_SETVAR && TK_FIND_PHOTO && TK_PHOTO_PUT_BLOCK;

0 commit comments

Comments
 (0)