Not Logged In
|
Login
|
Register
Home
|
News
|
Projects
|
Releases
Bugs
|
RFE
|
Repositories
|
Help
projects
/
xestiacalendar
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
file.cpp/.h: wstring version of FileExists for Win32 only
[xestiacalendar/.git]
/
source
/
common
/
file.cpp
diff --git
a/source/common/file.cpp
b/source/common/file.cpp
index
9e4e448
..
515ceb9
100644
(file)
--- 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)
#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
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software
Xestia Address Book
Xestia Calendar
Development
Xestia Gelforn
Everything else
About
News
Privacy Policy