aboutsummaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build4
1 files changed, 4 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 78c6d7c..ec58fb8 100644
--- a/meson.build
+++ b/meson.build
@@ -156,6 +156,10 @@ elif host_machine.system() == 'windows'
]
endif
+ if not get_option('win_wchar').disabled()
+ win_args += ['-DUNICODE', '-D_UNICODE']
+ endif
+
add_project_arguments(win_args, language: ['c', 'cpp'])
user32_dep = cc.find_library('user32')