diff --git a/Core/timing.c b/Core/timing.c index c0cd170..38b27ac 100644 --- a/Core/timing.c +++ b/Core/timing.c @@ -1,6 +1,8 @@ #include "gb.h" #ifdef _WIN32 +#ifndef _WIN32_WINNT #define _WIN32_WINNT 0x0500 +#endif #include #else #include diff --git a/Makefile b/Makefile index f970d8e..ade5863 100755 --- a/Makefile +++ b/Makefile @@ -4,6 +4,9 @@ # Set target, configuration, version and destination folders PLATFORM := $(shell uname -s) +ifneq ($(findstring MINGW,$(PLATFORM)),) +PLATFORM := windows32 +endif ifeq ($(PLATFORM),Darwin) DEFAULT := cocoa