From 402a0e94dcf9b895ad9293c870436c3c49c1e6c2 Mon Sep 17 00:00:00 2001 From: Diego Devesa Date: Sun, 24 Nov 2024 19:12:22 +0100 Subject: [PATCH] Update ggml/src/ggml-backend-impl.h Co-authored-by: Georgi Gerganov --- ggml/src/ggml-backend-impl.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ggml/src/ggml-backend-impl.h b/ggml/src/ggml-backend-impl.h index e22ddbb02..8d670b894 100644 --- a/ggml/src/ggml-backend-impl.h +++ b/ggml/src/ggml-backend-impl.h @@ -211,18 +211,18 @@ extern "C" { // Add backend dynamic loading support to the backend #ifdef GGML_BACKEND_DL #ifdef __cplusplus - # define GGML_BACKEND_DL_IMPL(reg_fn) \ - extern "C" { \ - GGML_BACKEND_API ggml_backend_reg_t ggml_backend_init(); \ - } \ - ggml_backend_reg_t ggml_backend_init() { \ - return reg_fn(); \ + # define GGML_BACKEND_DL_IMPL(reg_fn) \ + extern "C" { \ + GGML_BACKEND_API ggml_backend_reg_t ggml_backend_init(void); \ + } \ + ggml_backend_reg_t ggml_backend_init(void) { \ + return reg_fn(); \ } #else - # define GGML_BACKEND_DL_IMPL(reg_fn) \ - GGML_BACKEND_API ggml_backend_reg_t ggml_backend_init(); \ - ggml_backend_reg_t ggml_backend_init() { \ - return reg_fn(); \ + # define GGML_BACKEND_DL_IMPL(reg_fn) \ + GGML_BACKEND_API ggml_backend_reg_t ggml_backend_init(void); \ + ggml_backend_reg_t ggml_backend_init(void) { \ + return reg_fn(); \ } #endif #else