win32 compile fixes

This commit is contained in:
Mark Vejvoda
2010-04-30 23:30:15 +00:00
parent fd2274775e
commit 5cf84e8a2a
6 changed files with 18 additions and 4 deletions

View File

@@ -11,7 +11,9 @@
// ==============================================================
#include "base_thread.h"
#include "platform_common.h"
#include "util.h"
#include <time.h>
using namespace Shared::Util;

View File

@@ -33,9 +33,9 @@ void FileCRCPreCacheThread::execute() {
vector<string> techPaths;
findDirs(techDataPaths, techPaths);
if(techPaths.empty() == false) {
for(int idx = 0; idx < techPaths.size(); idx++) {
for(unsigned int idx = 0; idx < techPaths.size(); idx++) {
string &techPath = techPaths[idx];
for(int idx2 = 0; idx2 < techPaths.size(); idx2++) {
for(unsigned int idx2 = 0; idx2 < techPaths.size(); idx2++) {
string techName = techPaths[idx2];
printf("In [%s::%s Line: %d] caching CRC value for Tech [%s]\n",__FILE__,__FUNCTION__,__LINE__,techName.c_str());

View File

@@ -60,7 +60,7 @@ inline bool acquire_file_lock(int hnd)
return -1 != ::fcntl(hnd, F_SETLK, &lock);
#else
HANDLE hFile = (HANDLE)_get_osfhandle(hnd);
return true == ::LockFile(hFile, 0, 0, 0, -0x10000);
return TRUE == ::LockFile(hFile, 0, 0, 0, -0x10000);
#endif
}