Fixed compile error

This commit is contained in:
niansa 2023-06-23 11:51:25 +02:00
parent 339bc36cdd
commit 9d643755a6

View file

@ -1,15 +1,16 @@
#pragma once #pragma once
#include <cstddef>
#ifdef __cplusplus #ifdef __cplusplus
#include <cstddef>
extern "C" { extern "C" {
#else
#include <stddef.h>
#endif #endif
struct ggml_kompute_context; 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); void ggml_metal_free(struct ggml_kompute_context * ctx);
// creates a mapping between a host memory buffer and a device memory buffer // creates a mapping between a host memory buffer and a device memory buffer