From 337912072ae97f753f5740a06b46a3c9a4840ab7 Mon Sep 17 00:00:00 2001 From: Luca Bacci Date: Thu, 5 Oct 2023 09:21:08 +0200 Subject: Windows: Compile with the UNICODE / _UNICODE macros It's the recommended way to build C/C++ projects on Windows, see https://learn.microsoft.com/en-us/windows/win32/intl/conventions-for-function-prototypes --- meson.build | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meson.build') diff --git a/meson.build b/meson.build index fa6a9d8e1..6084471f8 100644 --- a/meson.build +++ b/meson.build @@ -213,6 +213,10 @@ if host_system == 'qnx' add_project_arguments('-D_QNX_SOURCE', language: 'c') endif +if host_system == 'windows' + add_project_arguments(['-DUNICODE', '-D_UNICODE'], language: 'c') +endif + # Disable strict aliasing; # see https://bugzilla.gnome.org/show_bug.cgi?id=791622 if cc.has_argument('-fno-strict-aliasing') -- cgit v1.2.3-70-g09d2