From 9d643755a62075bad0570c54e82d87d4228d06ab Mon Sep 17 00:00:00 2001 From: niansa Date: Fri, 23 Jun 2023 11:51:25 +0200 Subject: [PATCH] Fixed compile error --- ggml-vulkan.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ggml-vulkan.h b/ggml-vulkan.h index 649c34b53..a3bc781d7 100644 --- a/ggml-vulkan.h +++ b/ggml-vulkan.h @@ -1,15 +1,16 @@ #pragma once -#include - #ifdef __cplusplus +#include extern "C" { +#else +#include #endif struct ggml_kompute_context; -ggml_kompute_context * ggml_vk_init(void); +struct ggml_kompute_context * ggml_vk_init(void); void ggml_metal_free(struct ggml_kompute_context * ctx); // creates a mapping between a host memory buffer and a device memory buffer