diff options
author | Michal Krol <michal@vmware.com> | 2009-09-24 10:57:32 +0200 |
---|---|---|
committer | Michal Krol <michal@vmware.com> | 2009-09-24 10:57:32 +0200 |
commit | 69fec23251740c3071ffc3fefc8981599bdb22ef (patch) | |
tree | 99dea4721a562a3e9918d55248a156edd829df49 /src/glsl/pp/sl_pp_macro.c | |
parent | 7a95a3c7c4ba49ec174681c36951e3c0672df06c (diff) |
glsl/pp: Avoid using `__VERSION__' as an identifier.
Diffstat (limited to 'src/glsl/pp/sl_pp_macro.c')
-rw-r--r-- | src/glsl/pp/sl_pp_macro.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glsl/pp/sl_pp_macro.c b/src/glsl/pp/sl_pp_macro.c index 3956ba3b57..a4e78861d6 100644 --- a/src/glsl/pp/sl_pp_macro.c +++ b/src/glsl/pp/sl_pp_macro.c @@ -27,6 +27,7 @@ #include <stdlib.h> #include <stdio.h> +#include <string.h> #include "sl_pp_macro.h" #include "sl_pp_process.h" @@ -149,7 +150,7 @@ sl_pp_macro_expand(struct sl_pp_context *context, (*pi)++; return 0; } - if (macro_name == context->dict.__VERSION__) { + if (macro_name == context->dict.___VERSION__) { if (!mute && _out_number(context, state, 110)) { return -1; } |