mirror of
https://github.com/glest/glest-source.git
synced 2025-08-12 11:24:00 +02:00
win32 compile fixes
This commit is contained in:
Binary file not shown.
@@ -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"
|
||||
>
|
||||
|
@@ -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);}
|
||||
|
@@ -11,7 +11,9 @@
|
||||
// ==============================================================
|
||||
|
||||
#include "base_thread.h"
|
||||
#include "platform_common.h"
|
||||
#include "util.h"
|
||||
#include <time.h>
|
||||
|
||||
using namespace Shared::Util;
|
||||
|
||||
|
@@ -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());
|
||||
|
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user