meson.build: disable Windows header features not needed by MPD

This commit is contained in:
Max Kellermann 2021-05-19 16:22:27 +02:00
parent 239a83324e
commit a6cb3139db
1 changed files with 6 additions and 0 deletions

View File

@ -153,6 +153,12 @@ if is_windows
# reduce header bloat by disabling obscure and obsolete Windows # reduce header bloat by disabling obscure and obsolete Windows
# APIs # APIs
'-DWIN32_LEAN_AND_MEAN', '-DWIN32_LEAN_AND_MEAN',
# disable more Windows APIs which are not used by MPD
'-DNOGDI', '-DNOBITMAP', '-DNOCOMM',
# disable Internet Explorer specific APIs
'-D_WIN32_IE=0',
] ]
subdir('win32') subdir('win32')