From 7f49eab79f37958e3cb8aafe4fa5a5fa06fb212f Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Tue, 22 Jun 2021 21:38:54 +0200 Subject: [PATCH] Mark the importer API with extern C --- src/sfizz/import/sfizz_import.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/sfizz/import/sfizz_import.h b/src/sfizz/import/sfizz_import.h index 1b4ddf36..7ae1184b 100644 --- a/src/sfizz/import/sfizz_import.h +++ b/src/sfizz/import/sfizz_import.h @@ -7,6 +7,10 @@ #pragma once #include +#ifdef __cplusplus +extern "C" { +#endif + /** * @brief Loads or imports an instrument file. * @@ -28,3 +32,7 @@ * - @b OFF: the function cannot be invoked while a thread is calling @b RT functions */ bool sfizz_load_or_import_file(sfizz_synth_t* synth, const char* path, const char** format); + +#ifdef __cplusplus +} // extern "C" +#endif