Skip to content

Commit cf37b76

Browse files
authored
Merge pull request #23960 from meeseeksmachine/auto-backport-of-pr-23947-on-v3.6.x
Backport PR #23947 on branch v3.6.x (Fix building on MINGW)
2 parents b8af722 + eac65ff commit cf37b76

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)