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"
#ifdef _WIN32
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#include <Windows.h>
#else
#include <sys/time.h>

View File

@ -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