[Mesa-dev] [PATCH] glsl: s/class/struct/ for ast_type_qualifier
Kenneth Graunke
kenneth at whitecape.org
Wed Aug 29 10:59:10 PDT 2012
On 08/29/2012 08:04 AM, Brian Paul wrote:
> To silence an MSVC compiler warning about class vs. struct.
> ---
> src/glsl/glsl_parser_extras.h | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/glsl/glsl_parser_extras.h b/src/glsl/glsl_parser_extras.h
> index 66463c5..fc08ee2 100644
> --- a/src/glsl/glsl_parser_extras.h
> +++ b/src/glsl/glsl_parser_extras.h
> @@ -96,7 +96,7 @@ struct _mesa_glsl_parse_state {
> * Currently affects uniform blocks and uniform buffer variables in
> * those blocks.
> */
> - class ast_type_qualifier *default_uniform_qualifier;
> + struct ast_type_qualifier *default_uniform_qualifier;
>
> /**
> * Printable list of GLSL versions supported by the current context
It looks like it's not very feasible to do the reverse (change the
definition from a "struct" to a "class") since it's used in Yacc. So
this seems fine.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
More information about the mesa-dev
mailing list