From 80581a4aa2b5906cdec06adcd15d603038b9007d Mon Sep 17 00:00:00 2001 From: commander kotori Date: Fri, 25 May 2018 09:52:11 +0000 Subject: [PATCH] [host] ask for unicode with mingw-w64 makefile Pass -DUNICODE as a CFLAG. The visual studio project asks for a unicode (wide-string) build, but the unix makefile did not. This fixes the build on msys2. --- host/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/Makefile b/host/Makefile index fc002fb3..e86af16b 100644 --- a/host/Makefile +++ b/host/Makefile @@ -6,7 +6,7 @@ CFLAGS += -ffast-math CFLAGS += -fdata-sections -ffunction-sections CFLAGS += -I../ -I. LDFLAGS += -Wl,--gc-sections -mwindows -CFLAGS += -DWINVER=0x0602 +CFLAGS += -DWINVER=0x0602 -DUNICODE PREFIX ?= x86_64-w64-mingw32- STRIP = $(PREFIX)strip