diff --git a/meson.build b/meson.build index a2ce73b5e5..89806e240b 100644 --- a/meson.build +++ b/meson.build @@ -318,6 +318,9 @@ mswin_flags = ['-D_WIN32_WINNT=0x0A00', '-DWINVER=0x0A00', '-DUNICODE', '-D_CRT_DECLARE_NONSTDC_NAMES', '-D_CRT_NONSTDC_NO_WARNINGS', '-D_CRT_SECURE_NO_WARNINGS', '-DWINRT_NO_SOURCE_LOCATION'] +# https://developercommunity.visualstudio.com/t/NAN-is-no-longer-compile-time-constant-i/10688907 +mswin_flags += '-D_UCRT_NOISY_NAN' + if host_machine.system() == 'windows' flags += [mswin_flags] flags_c += ['-U__STRICT_ANSI__']