From 7c2a0f0d647876f8cace6f82d60c4e52d9e37dbe Mon Sep 17 00:00:00 2001 From: lifegpc Date: Wed, 23 Apr 2025 17:57:10 +0800 Subject: [PATCH] Fix build --- wchar_util.cpp | 4 ---- wchar_util.h | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/wchar_util.cpp b/wchar_util.cpp index 9ad6a41..448057a 100644 --- a/wchar_util.cpp +++ b/wchar_util.cpp @@ -3,10 +3,6 @@ #include #include -#if _WIN32 -#include -#endif - bool stringToChar(std::string input, char*& output) { auto sz = input.size(); auto s = (char*)malloc(sz + 1); diff --git a/wchar_util.h b/wchar_util.h index ff896fb..4a68ece 100644 --- a/wchar_util.h +++ b/wchar_util.h @@ -1,7 +1,9 @@ #ifndef _UTIL_WCHAR_UTIL_H #define _UTIL_WCHAR_UTIL_H #include +#if _WIN32 #include +#endif namespace wchar_util { #if _WIN32