X-Git-Url: http://Server1/repobrowser/?p=xestiacalendar%2F.git;a=blobdiff_plain;f=source%2Fcommon%2Ffile.cpp;h=515ceb9e566d65230b13d34d9117111b8e685940;hp=9e4e448cf5a2912c75e62ef5e60dd824dd4fafd2;hb=e1f41a323159828fef7a3319768d1bc34fc127d3;hpb=49789773e2797383c866dca470fb99e80cb49e41 diff --git a/source/common/file.cpp b/source/common/file.cpp index 9e4e448..515ceb9 100644 --- a/source/common/file.cpp +++ b/source/common/file.cpp @@ -38,22 +38,12 @@ bool FileExists(std::string filename){ } -bool FileExists(std::wstring filename) { - #if defined (WIN32) - return PathFileExists(filename.c_str()); - -#else - - struct stat bufferData; - - if (stat(filename.c_str(), &bufferData) == -1) { - return false; - } +bool FileExists(std::wstring filename) { -#endif + return PathFileExists(filename.c_str()); - return true; +} -} \ No newline at end of file +#endif \ No newline at end of file