From 011e85b10b16128709134d118445aa2eb5b9c649 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Heusipp?= Date: Thu, 2 Jan 2025 21:46:52 +0000 Subject: [PATCH] [Fix] build: Autotools: MinGW: MinGW does not define _UNICODE in its CRT headers when UNICODE is defined, like Microsoft does. #define _UNICODE manually when passing -municode. git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@22708 56274372-70c3-4bfc-bfc3-4c3a0b034d27 --- build/autotools/configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/autotools/configure.ac b/build/autotools/configure.ac index 53c34d2e535..3830a25b0b2 100644 --- a/build/autotools/configure.ac +++ b/build/autotools/configure.ac @@ -111,7 +111,7 @@ AS_CASE([$host_os], LIBOPENMPT_LIBS_PRIVATE_WIN32= LIBOPENMPTTEST_WIN32_LIBS="-lole32 -lrpcrt4" OPENMPT123_WIN32_LIBS=-lwinmm - WIN32_CPPFLAGS="-DNOMINMAX" + WIN32_CPPFLAGS="-D_UNICODE -DNOMINMAX" WIN32_CXXFLAGS="-municode -mthreads" WIN32_CFLAGS="-municode -mthreads" WIN32_CONSOLE_CXXFLAGS=-mconsole