Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
file.cpp/.h: wstring version of FileExists for Win32 only
[xestiacalendar/.git] / source / common / file.cpp
index 076752d..515ceb9 100644 (file)
@@ -22,7 +22,7 @@ using namespace std;
 
 bool FileExists(std::string filename){
        
-#if defined (__WIN32__)
+#if defined (WIN32)
 
 #else 
 
@@ -36,4 +36,14 @@ bool FileExists(std::string filename){
        
        return true;
        
-}
\ No newline at end of file
+}
+
+#if defined (WIN32)
+
+bool FileExists(std::wstring filename) {
+
+       return PathFileExists(filename.c_str());
+
+}
+
+#endif
\ No newline at end of file
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy