Skip to content

Commit 72ac0cb

Browse files
committed
ggml-backend : unify the dl_load_library() return type
Use the unified type 'dl_handle' instead of 'void' directly, to match the Windows 'dl_load_library()' definition.
1 parent 02463ab commit 72ac0cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-backend-reg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ struct dl_handle_deleter {
149149
}
150150
};
151151

152-
static void * dl_load_library(const fs::path & path) {
152+
static dl_handle * dl_load_library(const fs::path & path) {
153153
dl_handle * handle = dlopen(path.string().c_str(), RTLD_NOW | RTLD_LOCAL);
154154

155155
return handle;

0 commit comments

Comments
 (0)