File tree 1 file changed +10
-10
lines changed
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -211,18 +211,18 @@ extern "C" {
211
211
// Add backend dynamic loading support to the backend
212
212
#ifdef GGML_BACKEND_DL
213
213
#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(); \
220
220
}
221
221
#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(); \
226
226
}
227
227
#endif
228
228
#else
You can’t perform that action at this time.
0 commit comments