Skip to content

Commit 7521cde

Browse files
committed
Expose whisper_load_backends Conditionaly
1 parent 31ded71 commit 7521cde

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/whisper.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,9 @@ extern "C" {
260260
WHISPER_API void whisper_free_context_params(struct whisper_context_params * params);
261261

262262
// Required for GGML_BACKEND_DL
263+
#ifdef GGML_BACKEND_DL
263264
WHISPER_API void whisper_load_backends();
265+
#endif
264266

265267
// Convert RAW PCM audio to log mel spectrogram.
266268
// The resulting spectrogram is stored inside the default state of the provided whisper context.

0 commit comments

Comments
 (0)