diff --git a/src/atomics_cobalt.c b/src/atomics_cobalt.c index aa597fd..543a366 100644 --- a/src/atomics_cobalt.c +++ b/src/atomics_cobalt.c @@ -27,6 +27,9 @@ #include // malloc, free #ifdef HAVE_LIBUSB +#ifdef _WIN32 +#define NOGDI +#endif #include #endif diff --git a/src/context.c b/src/context.c index 0163a3c..344e4ee 100644 --- a/src/context.c +++ b/src/context.c @@ -25,6 +25,7 @@ #include #ifdef _WIN32 +#define NOGDI #include #endif diff --git a/src/irda.c b/src/irda.c index 476fa7e..4556256 100644 --- a/src/irda.c +++ b/src/irda.c @@ -22,6 +22,7 @@ #include // malloc, free #include // snprintf #ifdef _WIN32 + #define NOGDI #include #include #include diff --git a/src/serial_win32.c b/src/serial_win32.c index 4879c2d..fa4d00a 100644 --- a/src/serial_win32.c +++ b/src/serial_win32.c @@ -20,6 +20,8 @@ */ #include + +#define NOGDI #include #include "serial.h"