Fixed Yield/Windows clash in sckint.cpp, updated makefile

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1999-05-05 11:45:20 +00:00
parent fdd3ed7a8f
commit 7019025615
3 changed files with 15 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
src/wxvc.dsp
src/wxvc.dsw
src/wxvc6.dsp
src/wxvc6.dsw
src/wxvc_dll.dsp
src/wxvc_dll.dsw

View File

@@ -155,11 +155,23 @@ void *SocketWaiter::Entry()
if (FD_ISSET(m_fd, &sockwr_set))
ProcessWriteEvent();
#if wxUSE_THREADS
#ifdef Yield
#undef Yield
#endif
if (ret == 0)
// If nothing happened, we wait for 100 ms.
wxThread::Sleep(10);
else
wxThread::Yield();
#else
if (ret == 0)
// If nothing happened, we wait for 100 ms.
wxUsleep(10);
else
wxYield();
#endif
// Check whether we should exit.
if (TestDestroy())

View File

@@ -141,8 +141,8 @@ COMMONOBJS = \
..\common\$D\paper.obj \
..\common\$D\string.obj \
..\common\$D\socket.obj \
..\common\$D\socket.obj \
..\common\$D\sckaddr.obj \
..\common\$D\sckint.obj \
..\common\$D\sckfile.obj \
..\common\$D\sckipc.obj \
..\common\$D\sckstrm.obj \