Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

fix binding build

Jeffrey Morgan268e362fa73c
diff --git a/llama/binding/binding.h b/llama/binding/binding.h
index eb23d896b..79aa31421 100644
--- a/llama/binding/binding.h
+++ b/llama/binding/binding.h
@@ -20,8 +20,12 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
+#ifdef __cplusplus
+
extern "C" {
+#endif
+
#include <stdbool.h>
extern unsigned char tokenCallback(void *, char *);
@@ -58,4 +62,8 @@ void llama_binding_free_model(void *state);
int llama_predict(void *params_ptr, void *state_pr, char *result, bool debug);
-}
\ No newline at end of file
+#ifdef __cplusplus
+
+}
+
+#endif