From ad97e0eda8baee4537979e60a6687c892db044ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=2E=20Yusuf=20Sar=C4=B1g=C3=B6z?= Date: Sun, 5 Nov 2023 23:36:16 +0300 Subject: [PATCH] attempt to fix build on Windows --- examples/llava/llava-utils.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/llava/llava-utils.h b/examples/llava/llava-utils.h index aa6f0304c..3303f7a87 100644 --- a/examples/llava/llava-utils.h +++ b/examples/llava/llava-utils.h @@ -1,3 +1,6 @@ +#ifndef LLA_UTILS_H +#define LLAVA_UTILS_H + #pragma once // this one and clip lib will be eventually merged to a single lib, let's keep it this way for now @@ -200,3 +203,5 @@ inline std::string remove_image_from_prompt(const std::string& prompt, const cha auto post = prompt.substr(end + strlen(IMG_BASE64_TAG_END)); return pre + replacement + post; } + +#endif