mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 10:50:16 +01:00
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>
This commit is contained in:
parent
a697dde553
commit
e0de7aa4d7
1 changed files with 3 additions and 0 deletions
|
|
@ -25,6 +25,9 @@
|
|||
#include "aco_ir.h"
|
||||
|
||||
#ifdef LLVM_AVAILABLE
|
||||
#if defined(_MSC_VER) && defined(restrict)
|
||||
#undef restrict
|
||||
#endif
|
||||
#include "llvm/ac_llvm_util.h"
|
||||
|
||||
#include "llvm-c/Disassembler.h"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue