]> Nishi Git Mirror - tewi.git/commitdiff
fix mingw
authorNishi <nishi@nishi.boats>
Wed, 18 Sep 2024 21:30:19 +0000 (21:30 +0000)
committerNishi <nishi@nishi.boats>
Wed, 18 Sep 2024 21:30:19 +0000 (21:30 +0000)
git-svn-id: file:///raid/svn-personal/tewi/trunk@67 8739d7e6-ffea-ec47-b151-bdff447c6205

Server/server.c

index db6cef66ac907bdf5b05b0197a37fc7536060ec0..3d7bad5b613ca96d3c53f167bad6fc75743e7b2e 100644 (file)
@@ -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;