From 665b1917154c305436e034137b9d7cdf16c5e951 Mon Sep 17 00:00:00 2001 From: Haiyue Wang Date: Mon, 29 Sep 2025 00:29:09 +0800 Subject: [PATCH] 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. --- ggml/src/ggml-backend-reg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ggml/src/ggml-backend-reg.cpp b/ggml/src/ggml-backend-reg.cpp index 136afec748d96..4bd1f4ac2a3c1 100644 --- a/ggml/src/ggml-backend-reg.cpp +++ b/ggml/src/ggml-backend-reg.cpp @@ -149,7 +149,7 @@ struct dl_handle_deleter { } }; -static void * dl_load_library(const fs::path & path) { +static dl_handle * dl_load_library(const fs::path & path) { dl_handle * handle = dlopen(path.string().c_str(), RTLD_NOW | RTLD_LOCAL); return handle;