projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95fdde5
)
nir: no-op C99 _Pragma() with MSVC
author
Brian Paul
<brianp@vmware.com>
Sat, 23 Nov 2019 02:42:34 +0000
(19:42 -0700)
committer
Brian Paul
<brianp@vmware.com>
Sat, 23 Nov 2019 17:34:24 +0000
(10:34 -0700)
This fixes a build failure on MSVC.
BTW, it looks like clang supports _Pragma() but I don't know if it
understands the "gcc unroll N" directive.
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/compiler/nir/nir_range_analysis.c
patch
|
blob
|
history
diff --git
a/src/compiler/nir/nir_range_analysis.c
b/src/compiler/nir/nir_range_analysis.c
index df5d4dab9af756463a26c585374493b081d99c70..d38bcc0b0407635629b0be2600ed58eeaa988ea3 100644
(file)
--- a/
src/compiler/nir/nir_range_analysis.c
+++ b/
src/compiler/nir/nir_range_analysis.c
@@
-218,6
+218,13
@@
analyze_constant(const struct nir_alu_instr *instr, unsigned src,
*/
#define _______ unknown
+
+/* MSVC doesn't have C99's _Pragma() */
+#ifdef _MSC_VER
+#define _Pragma(x)
+#endif
+
+
#ifndef NDEBUG
#define ASSERT_TABLE_IS_COMMUTATIVE(t) \
do { \