Fix some issues with the MinGW build.

Fixes #58.
This commit is contained in:
Arthur O'Dwyer 2018-09-05 06:30:18 -07:00
parent 2d5d5a1966
commit 8ebdede538
3 changed files with 3 additions and 1 deletions

View File

@ -34,6 +34,7 @@ endif MAC
if MINGW
nodist_hyperrogue_SOURCES = hyper.res
hyperrogue_CPPFLAGS += -march=native -DWINDOWS
windres_prefix = ${host_cpu}-w64-mingw32-
endif MINGW

View File

@ -94,6 +94,7 @@ endif
ifeq (${TOOLCHAIN},mingw)
CXXFLAGS_EARLY += -std=c++11 -march=native
CXXFLAGS_EARLY += -W -Wall -Wextra -Werror
CXXFLAGS_EARLY += -Wno-unused-parameter
endif

View File

@ -1525,7 +1525,7 @@ namespace patterns {
#if CAP_TEXTURE
#define REMAP_TEXTURE texture::config.remap()
#else
#define REMAP_TEXTURE
#define REMAP_TEXTURE (void)0
#endif
void showPattern() {