Attempt to fix building using MINGW. Affects #55

This commit is contained in:
Lior Halphon 2018-03-29 21:27:19 +03:00
parent a9fbbd3894
commit c7ca786e77
2 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,8 @@
#include "gb.h" #include "gb.h"
#ifdef _WIN32 #ifdef _WIN32
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0500 #define _WIN32_WINNT 0x0500
#endif
#include <Windows.h> #include <Windows.h>
#else #else
#include <sys/time.h> #include <sys/time.h>

View File

@ -4,6 +4,9 @@
# Set target, configuration, version and destination folders # Set target, configuration, version and destination folders
PLATFORM := $(shell uname -s) PLATFORM := $(shell uname -s)
ifneq ($(findstring MINGW,$(PLATFORM)),)
PLATFORM := windows32
endif
ifeq ($(PLATFORM),Darwin) ifeq ($(PLATFORM),Darwin)
DEFAULT := cocoa DEFAULT := cocoa