File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -211,18 +211,18 @@ extern "C" {
211211 // Add backend dynamic loading support to the backend
212212 #ifdef GGML_BACKEND_DL
213213 #ifdef __cplusplus
214- # define GGML_BACKEND_DL_IMPL (reg_fn ) \
215- extern "C" { \
216- GGML_BACKEND_API ggml_backend_reg_t ggml_backend_init(); \
217- } \
218- ggml_backend_reg_t ggml_backend_init() { \
219- return reg_fn(); \
214+ # define GGML_BACKEND_DL_IMPL (reg_fn ) \
215+ extern "C" { \
216+ GGML_BACKEND_API ggml_backend_reg_t ggml_backend_init(void ); \
217+ } \
218+ ggml_backend_reg_t ggml_backend_init(void ) { \
219+ return reg_fn(); \
220220 }
221221 #else
222- # define GGML_BACKEND_DL_IMPL (reg_fn ) \
223- GGML_BACKEND_API ggml_backend_reg_t ggml_backend_init(); \
224- ggml_backend_reg_t ggml_backend_init() { \
225- return reg_fn(); \
222+ # define GGML_BACKEND_DL_IMPL (reg_fn ) \
223+ GGML_BACKEND_API ggml_backend_reg_t ggml_backend_init(void); \
224+ ggml_backend_reg_t ggml_backend_init(void ) { \
225+ return reg_fn(); \
226226 }
227227 #endif
228228 #else
You can’t perform that action at this time.
0 commit comments