From 0bd981145271809b660b73452453c157002cdc35 Mon Sep 17 00:00:00 2001 From: Kiritow <1362050620@qq.com> Date: Thu, 23 Mar 2017 12:22:02 +0800 Subject: [PATCH] Visual Studio Special Version We have met a few problems on Visual Studio. We have to change the header and source file to pass the compilation. --- MiniEngine.cpp | 6 ++++-- MiniEngine.h | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/MiniEngine.cpp b/MiniEngine.cpp index 18fd869..1d3dd3e 100644 --- a/MiniEngine.cpp +++ b/MiniEngine.cpp @@ -4,8 +4,6 @@ #include #include -#include - #include "rapidxml/rapidxml.hpp" #include "rapidxml/rapidxml_print.hpp" #include "rapidxml/rapidxml_utils.hpp" @@ -1306,6 +1304,9 @@ namespace MiniEngine }/// End of namespace MiniEngine +/// The Following Functions are not avaliable in Visual Studio +#if 0 +#include bool isexist(std::string Path) { @@ -1326,6 +1327,7 @@ bool canexecute(std::string Path) { return access(Path.c_str(),X_OK)==0; } +#endif /// End of if 0 /// Default Setup Code int main(int argc, char* argv[]) diff --git a/MiniEngine.h b/MiniEngine.h index bb02b4f..4bf3fae 100644 --- a/MiniEngine.h +++ b/MiniEngine.h @@ -7,6 +7,7 @@ #include #include +#include #define _DECL_DEPRECATED __declspec(deprecated) #define _DECL_DEPRECATED_MSG(InfoString) __declspec(deprecated(InfoString))