aco: Define NOMINMAX in Meson build file

Fix conflicts between std::min/max and Win32 min/max.

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7785>
This commit is contained in:
James Park
2020-11-26 21:29:13 -08:00
committed by Marge Bot
parent 2d12991e01
commit fcd53bebe6

View File

@@ -86,7 +86,7 @@ libaco_files = files(
'aco_validate.cpp',
)
cpp_args_aco = cpp.get_supported_arguments(['-fno-exceptions', '-fno-rtti', '-Wshadow'])
cpp_args_aco = cpp.get_supported_arguments(['-fno-exceptions', '-fno-rtti', '-Wshadow', '-DNOMINMAX'])
_libaco = static_library(
'aco',