1
0
Fork 0

fix windows compile problems.

This commit is contained in:
Wilfried Goesgens 2016-08-26 14:17:28 +02:00
parent 9afbc817a3
commit 1de83c020d
1 changed files with 3 additions and 2 deletions

View File

@ -25,6 +25,7 @@
#ifdef _WIN32
#include <tchar.h>
#include <Shlwapi.h>
#endif
#include "Basics/directories.h"
@ -1700,13 +1701,13 @@ std::string TRI_LocateBinaryPath(char const* argv0) {
std::string TRI_GetInstallRoot(std::string const& binaryPath,
char const *installBinaryPath) {
// First lets remove trailing (back) slashes from the bill:
long ibpLength = strlen(installBinaryPath);
size_t ibpLength = strlen(installBinaryPath);
if (installBinaryPath[ibpLength - 1] == TRI_DIR_SEPARATOR_CHAR) {
ibpLength --;
}
long bpLength = binaryPath.length();
size_t bpLength = binaryPath.length();
const char *pbPath = binaryPath.c_str();
if (pbPath[bpLength - 1] == TRI_DIR_SEPARATOR_CHAR) {