From: Nishi Date: Wed, 18 Sep 2024 21:30:19 +0000 (+0000) Subject: fix mingw X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=eb471e84be569b97fac816b17fe607a8471c581f;p=tewi.git fix mingw git-svn-id: file:///raid/svn-personal/tewi/trunk@67 8739d7e6-ffea-ec47-b151-bdff447c6205 --- diff --git a/Server/server.c b/Server/server.c index db6cef6..3d7bad5 100644 --- a/Server/server.c +++ b/Server/server.c @@ -732,6 +732,7 @@ void tw_server_loop(void) { if(ret == -1) { break; }else if(ret == 0){ +#ifdef __MINGW32__ for(i = 0; i < sizeof(threads) / sizeof(threads[0]); i++){ if(threads[i].used){ DWORD ex; @@ -742,6 +743,7 @@ void tw_server_loop(void) { } } } +#endif #ifdef SERVICE if(status.dwCurrentState == SERVICE_STOP_PENDING){ break;