fix mingw
git-svn-id: file:///raid/svn-personal/tewi/trunk@67 8739d7e6-ffea-ec47-b151-bdff447c6205
This commit is contained in:
parent
d1390757fa
commit
eb471e84be
|
@ -732,6 +732,7 @@ void tw_server_loop(void) {
|
||||||
if(ret == -1) {
|
if(ret == -1) {
|
||||||
break;
|
break;
|
||||||
}else if(ret == 0){
|
}else if(ret == 0){
|
||||||
|
#ifdef __MINGW32__
|
||||||
for(i = 0; i < sizeof(threads) / sizeof(threads[0]); i++){
|
for(i = 0; i < sizeof(threads) / sizeof(threads[0]); i++){
|
||||||
if(threads[i].used){
|
if(threads[i].used){
|
||||||
DWORD ex;
|
DWORD ex;
|
||||||
|
@ -742,6 +743,7 @@ void tw_server_loop(void) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#ifdef SERVICE
|
#ifdef SERVICE
|
||||||
if(status.dwCurrentState == SERVICE_STOP_PENDING){
|
if(status.dwCurrentState == SERVICE_STOP_PENDING){
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user