[sword-svn] r3770 - in trunk/src: mgr modules/common
scribe at crosswire.org
scribe at crosswire.org
Sun Jul 26 14:40:48 EDT 2020
Author: scribe
Date: 2020-07-26 14:40:48 -0400 (Sun, 26 Jul 2020)
New Revision: 3770
Modified:
trunk/src/mgr/filemgr.cpp
trunk/src/modules/common/zipcomprs.cpp
Log:
Updated missing dependencies for windows and explicitely call 'W' methods.
Modified: trunk/src/mgr/filemgr.cpp
===================================================================
--- trunk/src/mgr/filemgr.cpp 2020-07-26 17:27:10 UTC (rev 3769)
+++ trunk/src/mgr/filemgr.cpp 2020-07-26 18:40:48 UTC (rev 3770)
@@ -38,6 +38,9 @@
#else
#include <unistd.h>
#endif
+#ifdef WIN32
+#include <windows.h>
+#endif
#ifndef O_BINARY
@@ -406,7 +409,7 @@
i.size = FileMgr::getFileSize(basePath + i.name);
dirList.push_back(i);
}
- } while (FindNextFile(findIterator, &fileData) != 0);
+ } while (FindNextFileW(findIterator, &fileData) != 0);
FindClose(findIterator);
}
#endif
Modified: trunk/src/modules/common/zipcomprs.cpp
===================================================================
--- trunk/src/modules/common/zipcomprs.cpp 2020-07-26 17:27:10 UTC (rev 3769)
+++ trunk/src/modules/common/zipcomprs.cpp 2020-07-26 18:40:48 UTC (rev 3770)
@@ -32,6 +32,7 @@
#ifndef WIN32
#include <utime.h>
#else
+#include <windows.h>
#include <time.h>
#endif
extern "C" {
More information about the sword-cvs
mailing list