mirror of https://github.com/mpv-player/mpv
meson: add defines for Windows build to avoid warnings
See: https://learn.microsoft.com/cpp/c-runtime-library/compatibility https://learn.microsoft.com/cpp/c-runtime-library/security-features-in-the-crt
This commit is contained in:
parent
94eb07e3ea
commit
e1e09938c5
|
@ -312,7 +312,9 @@ features += {'dos-paths': win32, 'win32': win32}
|
|||
|
||||
mswin_flags = ['-D_WIN32_WINNT=0x0602', '-DWINVER=0x0602', '-DUNICODE',
|
||||
'-DCOBJMACROS', '-DINITGUID', '-U__STRICT_ANSI__', '-DNOMINMAX',
|
||||
'-D_USE_MATH_DEFINES', '-DWIN32_LEAN_AND_MEAN']
|
||||
'-D_USE_MATH_DEFINES', '-DWIN32_LEAN_AND_MEAN',
|
||||
'-D_CRT_DECLARE_NONSTDC_NAMES', '-D_CRT_NONSTDC_NO_WARNINGS',
|
||||
'-D_CRT_SECURE_NO_WARNINGS']
|
||||
|
||||
if host_machine.system() == 'windows'
|
||||
flags += [mswin_flags]
|
||||
|
|
Loading…
Reference in New Issue