From ed99ac670e38ab2db070549b1a710a25902a5cd3 Mon Sep 17 00:00:00 2001 From: nick black Date: Wed, 21 Jul 2021 18:42:53 -0400 Subject: [PATCH] strike most poll.h, use winsock2.h on windows --- src/demo/reel.c | 1 - src/lib/fd.c | 1 - src/lib/input.c | 1 - src/lib/internal.h | 5 ++++- src/lib/notcurses.c | 1 - 5 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/demo/reel.c b/src/demo/reel.c index 59b2725bc..7ace56190 100644 --- a/src/demo/reel.c +++ b/src/demo/reel.c @@ -1,4 +1,3 @@ -#include #include #include #include diff --git a/src/lib/fd.c b/src/lib/fd.c index 8a96307a7..1d10909b8 100644 --- a/src/lib/fd.c +++ b/src/lib/fd.c @@ -1,4 +1,3 @@ -#include #include #include #include diff --git a/src/lib/input.c b/src/lib/input.c index db4be673f..e44eb6315 100644 --- a/src/lib/input.c +++ b/src/lib/input.c @@ -1,7 +1,6 @@ #include "input.h" #include "internal.h" #include "notcurses/direct.h" -#include #include // needed for some definitions, see terminfo(3ncurses) #include #include diff --git a/src/lib/internal.h b/src/lib/internal.h index 32a8ebc81..96b038146 100644 --- a/src/lib/internal.h +++ b/src/lib/internal.h @@ -8,10 +8,13 @@ extern "C" { #include "version.h" #include "builddef.h" +#if defined(__MINGW64__) +#include +#else #include +#endif #include #include -#include #include #include #include diff --git a/src/lib/notcurses.c b/src/lib/notcurses.c index 50dfa2aaa..b334defd2 100644 --- a/src/lib/notcurses.c +++ b/src/lib/notcurses.c @@ -4,7 +4,6 @@ #include "egcpool.h" #include "internal.h" #include // needed for some definitions, see terminfo(3ncurses) -#include #include #include #include