From dcd2d333b8f18a5b4c7a76c05f6c4a138f5b1e4f Mon Sep 17 00:00:00 2001 From: Kiritow <1362050620@qq.com> Date: Fri, 24 Mar 2017 10:35:20 +0800 Subject: [PATCH] Fix File Operating functions in Windows Specific Version --- MiniEngine_Windows.cpp | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/MiniEngine_Windows.cpp b/MiniEngine_Windows.cpp index 17862ae..8278dad 100644 --- a/MiniEngine_Windows.cpp +++ b/MiniEngine_Windows.cpp @@ -1,7 +1,7 @@ #include "MiniEngine.h" using namespace std; -#include "windows.h" +#include //GBK编码转换到UTF8编码 int _GBKToUTF8(unsigned char * lpGBKStr,unsigned char * lpUTF8Str,int nUTF8StrLen) @@ -118,3 +118,25 @@ string GBKToUTF8(string GBKString) delete[] utf8str; return s; } + +#ifdef _MSC_VER +bool isexist(std::string Path) +{ + return false; +} + +bool canread(std::string Path) +{ + return false; +} + +bool canwrite(std::string Path) +{ + return false; +} + +bool canexecute(std::string Path) +{ + return false; +} +#endif /// End of _MSC_VER