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

Server/server.c

index 3d7bad5b613ca96d3c53f167bad6fc75743e7b2e..4618e65c86d0cff2ee55ab3251790fcbd8e18c1d 100644 (file)
@@ -714,9 +714,9 @@ struct thread_entry {
 
 void tw_server_loop(void) {
        struct timeval tv;
+       int i;
 #ifdef __MINGW32__
        struct thread_entry threads[2048];
-       int i;
        for(i = 0; i < sizeof(threads) / sizeof(threads[0]); i++){
                threads[i].used = false;
        }