aco: Work around MSVC restrict in c99_compat.h
authorJames Park <jpark37@lagfreegames.com>
Sun, 24 Oct 2021 01:02:48 +0000 (18:02 -0700)
committerMarge Bot <emma+marge@anholt.net>
Wed, 10 Nov 2021 16:37:51 +0000 (16:37 +0000)
commite0de7aa4d7717bbd79bbc5bfc660f941f680402b
tree3c460e522ac4c8e515720c3b2477e2e97b32a996
parenta697dde5535e7b2a0bd9a29221e93654f4531632
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>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13505>
src/amd/compiler/aco_print_asm.cpp