gallium: Use DETECT_OS_WINDOWS instead of 'WIN32'

Signed-off-by: GH Cao <driver1998.ms@outlook.com>
Acked-by: Roland Scheidegger <sroland@vmware.com>
Acked-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20675>
This commit is contained in:
driver1998 2023-02-02 12:45:19 +08:00 committed by Marge Bot
parent 0d1c759f4e
commit 982757082e

View file

@ -366,7 +366,7 @@ lp_build_create_jit_compiler_for_module(LLVMExecutionEngineRef *OutJIT,
.setTargetOptions(options)
.setOptLevel((CodeGenOpt::Level)OptLevel);
#ifdef _WIN32
#if DETECT_OS_WINDOWS
/*
* MCJIT works on Windows, but currently only through ELF object format.
*