made work in Windows
This commit is contained in:
parent
d76a9a35e1
commit
690bdfcf17
3 changed files with 18 additions and 4 deletions
|
@ -8,8 +8,6 @@
|
|||
#include <map>
|
||||
#include <set>
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
namespace {
|
||||
|
||||
unsigned int buf_id = 0;
|
||||
|
|
|
@ -54,12 +54,12 @@ condition::~condition()
|
|||
|
||||
bool condition::wait(const mutex& m)
|
||||
{
|
||||
SDL_CondWait(cond_,m.m_);
|
||||
return SDL_CondWait(cond_,m.m_) == 0;
|
||||
}
|
||||
|
||||
bool condition::wait_timeout(const mutex& m, unsigned int timeout)
|
||||
{
|
||||
SDL_CondWaitTimeout(cond_,m.m_,timeout);
|
||||
return SDL_CondWaitTimeout(cond_,m.m_,timeout) == 0;
|
||||
}
|
||||
|
||||
void condition::notify_one()
|
||||
|
|
16
wesnoth.dsp
16
wesnoth.dsp
|
@ -261,10 +261,18 @@ SOURCE=.\src\network.cpp
|
|||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\network_worker.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\pathfind.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\pathutils.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\playlevel.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
@ -281,6 +289,10 @@ SOURCE=.\src\widgets\progressbar.cpp
|
|||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\publish_campaign.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\race.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
@ -337,6 +349,10 @@ SOURCE=.\src\theme.cpp
|
|||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\thread.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\titlescreen.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
|
Loading…
Add table
Reference in a new issue