From e4c643abe76bb98bac5ee7f2ad5ea32ad0f380df Mon Sep 17 00:00:00 2001 From: fanlumaster <1730976608@qq.com> Date: Mon, 17 Feb 2025 15:07:58 +0800 Subject: [PATCH] fix compile issue --- CMakeLists.txt | 1 + src/Utils/FanyUtils.h | 15 ++++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ac51fb63..558649c4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,6 +32,7 @@ include_directories("./src/LanguageBar") include_directories("./src/Register") include_directories("./src/Tf") include_directories("./src/Thread") +include_directories("./src/Utils") include_directories("./src/Window") include_directories(${SQLITE_INCLUDE_DIR}) include_directories(${BOOST_INCLUDE_DIR}) diff --git a/src/Utils/FanyUtils.h b/src/Utils/FanyUtils.h index ff645872..ed5a6caf 100644 --- a/src/Utils/FanyUtils.h +++ b/src/Utils/FanyUtils.h @@ -1,8 +1,9 @@ -#include - -namespace FanyUtuils -{ -std::string GetIMEDataDirPath(); -std::string GetLogFilePath(); -std::wstring GetLogFilePathW(); +#pragma once +#include + +namespace FanyUtuils +{ +std::string GetIMEDataDirPath(); +std::string GetLogFilePath(); +std::wstring GetLogFilePathW(); } // namespace FanyUtuils \ No newline at end of file