From c7ca786e7701c457f37d58ee4021ead11da5966f Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Thu, 29 Mar 2018 21:27:19 +0300 Subject: [PATCH] Attempt to fix building using MINGW. Affects #55 --- Core/timing.c | 2 ++ Makefile | 3 +++ 2 files changed, 5 insertions(+) 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