aco: Work around MSVC restrict in c99_compat.h

Future LLVM header leads to __declspec(__restrict), which is invalid.
Just undefine the restrict macro to keep __declspec(restrict).

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
(cherry picked from commit e0de7aa4d7)

# Conflicts:
#	src/amd/compiler/aco_print_asm.cpp

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13813>
This commit is contained in:
pal1000 2021-11-16 11:04:51 +02:00 committed by Dylan Baker
parent 4cf2f780dc
commit 0f4b2413ec

View file

@ -24,6 +24,9 @@
#include "aco_ir.h"
#if defined(_MSC_VER) && defined(restrict)
#undef restrict
#endif
#include "llvm/ac_llvm_util.h"
#include "llvm-c/Disassembler.h"