Curses needs to be included before stdbool to compile properly with pdcurses on mingw32.
diff --git a/device-gpu.c b/device-gpu.c
index ff6c3d6..e05f554 100644
--- a/device-gpu.c
+++ b/device-gpu.c
@@ -12,6 +12,7 @@
#include "config.h"
+#include <curses.h>
#include <string.h>
#include <stdbool.h>
#include <stdint.h>
@@ -31,7 +32,6 @@
#include "adl.h"
/* TODO: cleanup externals ********************/
-#include <curses.h>
extern WINDOW *mainwin, *statuswin, *logwin;
extern void enable_curses(void);