diff --git a/moo/lib/poll-msw.c b/moo/lib/poll-msw.c index 8ac562a..6fc93e2 100644 --- a/moo/lib/poll-msw.c +++ b/moo/lib/poll-msw.c @@ -23,10 +23,11 @@ # pragma GCC diagnostic ignored "-Wtype-limits" #endif -#include "poll-msw.h" #include #include +#include "poll-msw.h" + #include #include #include diff --git a/moo/lib/poll-msw.h b/moo/lib/poll-msw.h index f7ebedd..86854f9 100644 --- a/moo/lib/poll-msw.h +++ b/moo/lib/poll-msw.h @@ -3,6 +3,7 @@ #include "moo.h" +#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x0600) /* Event types that can be polled for. These bits may be set in `events' to indicate the interesting event types; they will appear in `revents' to indicate the status of the file descriptor. */ @@ -30,9 +31,11 @@ struct pollfd an event to occur; if TIMEOUT is -1, block until an event occurs. Returns the number of file descriptors with events, zero if timed out, or -1 for errors. */ +#endif typedef unsigned long nfds_t; + #if defined(__cplusplus) extern "C" { #endif