Skip to content
Snippets Groups Projects
Commit 9586feff authored by James Park's avatar James Park Committed by Eric Engestrom
Browse files

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: default avatarBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <mesa/mesa!13505>
(cherry picked from commit e0de7aa4)
parent ffb3ab4d
No related branches found
No related tags found
No related merge requests found
......@@ -1894,7 +1894,7 @@
"description": "aco: Work around MSVC restrict in c99_compat.h",
"nominated": false,
"nomination_type": null,
"resolution": 4,
"resolution": 1,
"main_sha": null,
"because_sha": null
},
......
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment