summaryrefslogtreecommitdiffstats
path: root/src/glsl/ast.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2014-02-12 13:22:27 -0700
committerBrian Paul <[email protected]>2014-02-12 13:37:09 -0700
commit248606a5f065b88ee6328c233e54f163088de5d5 (patch)
tree8272721b2b5492ebae58aff2b7f6423db26b8462 /src/glsl/ast.h
parentfd0620ff6c2c629e4888f4c98cfd6655adbfb69e (diff)
glsl: rename _restrict to restrict_flag
To fix MSVC compile breakage. Evidently, _restrict is an MSVC keyword, though the docs only mention __restrict (with two underscores). Note: we may want to also rename _volatile to volatile_flag to be consistent. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74900 Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/ast.h')
-rw-r--r--src/glsl/ast.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ast.h b/src/glsl/ast.h
index cd913ab34eb..9140ca13cda 100644
--- a/src/glsl/ast.h
+++ b/src/glsl/ast.h
@@ -473,7 +473,7 @@ struct ast_type_qualifier {
unsigned explicit_image_format:1;
unsigned coherent:1;
unsigned _volatile:1;
- unsigned _restrict:1;
+ unsigned restrict_flag:1;
unsigned read_only:1; /**< "readonly" qualifier. */
unsigned write_only:1; /**< "writeonly" qualifier. */
/** \} */