From 4b3cb98d46770e6166e22ebe1accce421e75d3df Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Mon, 30 Oct 2023 19:05:58 +0200 Subject: [PATCH] ggml-impl : move extern "C" to start of file --- ggml-impl.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ggml-impl.h b/ggml-impl.h index 777ab2bc5..5ec18a50c 100644 --- a/ggml-impl.h +++ b/ggml-impl.h @@ -10,6 +10,10 @@ #include // memcpy #include // fabsf +#ifdef __cplusplus +extern "C" { +#endif + // static_assert should be a #define, but if it's not, // fall back to the _Static_assert C11 keyword. // if C99 - static_assert is noop @@ -224,10 +228,6 @@ inline static float ggml_lookup_fp16_to_fp32(ggml_fp16_t f) { #define GGML_FP16_TO_FP32(x) ggml_lookup_fp16_to_fp32(x) #define GGML_FP32_TO_FP16(x) GGML_COMPUTE_FP32_TO_FP16(x) -#endif - -#ifdef __cplusplus -extern "C" { #endif // TODO: backend v2 PR