mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-28 12:24:35 +00:00
Update ggml/src/ggml-backend-impl.h
Some checks are pending
flake8 Lint / Lint (push) Waiting to run
Some checks are pending
flake8 Lint / Lint (push) Waiting to run
Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
This commit is contained in:
parent
ad1e27a0af
commit
402a0e94dc
@ -213,15 +213,15 @@ extern "C" {
|
|||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
# define GGML_BACKEND_DL_IMPL(reg_fn) \
|
# define GGML_BACKEND_DL_IMPL(reg_fn) \
|
||||||
extern "C" { \
|
extern "C" { \
|
||||||
GGML_BACKEND_API ggml_backend_reg_t ggml_backend_init(); \
|
GGML_BACKEND_API ggml_backend_reg_t ggml_backend_init(void); \
|
||||||
} \
|
} \
|
||||||
ggml_backend_reg_t ggml_backend_init() { \
|
ggml_backend_reg_t ggml_backend_init(void) { \
|
||||||
return reg_fn(); \
|
return reg_fn(); \
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
# define GGML_BACKEND_DL_IMPL(reg_fn) \
|
# define GGML_BACKEND_DL_IMPL(reg_fn) \
|
||||||
GGML_BACKEND_API ggml_backend_reg_t ggml_backend_init(); \
|
GGML_BACKEND_API ggml_backend_reg_t ggml_backend_init(void); \
|
||||||
ggml_backend_reg_t ggml_backend_init() { \
|
ggml_backend_reg_t ggml_backend_init(void) { \
|
||||||
return reg_fn(); \
|
return reg_fn(); \
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user