Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/_tkagg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,13 +231,13 @@ bool load_tcl_tk(T lib)
{
// 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")) {
Comment thread
MehdiChinoune marked this conversation as resolved.
Resolved
TK_PHOTO_PUT_BLOCK = (Tk_PhotoPutBlock_t)ptr;
}
return TCL_SETVAR && TK_FIND_PHOTO && TK_PHOTO_PUT_BLOCK;
Expand Down