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