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

Binary file not shown.

View File

@@ -707,6 +707,14 @@
<Filter
Name="platform"
>
<File
RelativePath="..\..\source\shared_lib\sources\platform\common\base_thread.cpp"
>
</File>
<File
RelativePath="..\..\source\shared_lib\sources\platform\common\cache_manager.cpp"
>
</File>
<File
RelativePath="..\..\source\shared_lib\include\platform\sdl\gl_wrap.h"
>
@@ -727,6 +735,10 @@
RelativePath="..\..\source\shared_lib\include\platform\sdl\sdl_private.h"
>
</File>
<File
RelativePath="..\..\source\shared_lib\sources\platform\common\simple_threads.cpp"
>
</File>
<File
RelativePath="..\..\source\shared_lib\include\platform\posix\socket.h"
>

View File

@@ -116,7 +116,7 @@ private:
static SDL_keysym keystate;
static void setLastMouseEvent(int64 lastMouseEvent) {Window::lastMouseEvent = lastMouseEvent;}
static unsigned int getLastMouseEvent() {return Window::lastMouseEvent;}
static int64 getLastMouseEvent() {return Window::lastMouseEvent;}
static const MouseState &getMouseState() {return Window::mouseState;}
static void setMouseState(MouseButton b, bool state) {Window::mouseState.set(b, state);}

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
}