From: kub <derkub@gmail.com> Date: Thu, 9 Jan 2025 22:55:10 +0000 (+0100) Subject: compile fix for windows mingw X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e1e5116fd2d07ed37e6775ce9f9867347573099;p=libpicofe.git compile fix for windows mingw --- diff --git a/linux/plat.c b/linux/plat.c index c4ce811..0b64d93 100644 --- a/linux/plat.c +++ b/linux/plat.c @@ -144,6 +144,7 @@ void plat_sleep_ms(int ms) int plat_wait_event(int *fds_hnds, int count, int timeout_ms) { +#ifndef __MINGW32__ struct timeval tv, *timeout = NULL; int i, ret, fdmax = -1; fd_set fdset; @@ -175,7 +176,9 @@ int plat_wait_event(int *fds_hnds, int count, int timeout_ms) for (i = 0; i < count; i++) if (FD_ISSET(fds_hnds[i], &fdset)) ret = fds_hnds[i]; - +#else + int ret = -1; +#endif return ret; }