Skip to content

Commit 402a0e9

Browse files
slarenggerganov
andauthored
Update ggml/src/ggml-backend-impl.h
Co-authored-by: Georgi Gerganov <[email protected]>
1 parent ad1e27a commit 402a0e9

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

ggml/src/ggml-backend-impl.h

+10-10
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)