On 23/07/14 22:16, Ian Romanick wrote: > On 07/22/2014 02:07 PM, Alon Levy wrote: >> Signed-off-by: Alon Levy <al...@redhat.com> >> --- >> src/glsl/glsl_parser.yy | 4 ++++ >> 1 file changed, 4 insertions(+) >> >> diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy >> index faaf438..25370cd 100644 >> --- a/src/glsl/glsl_parser.yy >> +++ b/src/glsl/glsl_parser.yy >> @@ -26,6 +26,10 @@ >> #include <string.h> >> #include <assert.h> >> >> +#ifdef _MSC_VER <= 1800 >> +#define strcasecmp _stricmp >> +#endif >> + > > glsl_parser.yy should already get the strcasecmp work around from > src/mesa/main/imports.h. > Just a general question - wouldn't it be better if we move some/all these quirks around the POSIX standard(s) into a header similar to c99_compat ? ... before the amount of duplication gets out of hand.
-Emil >> #include "ast.h" >> #include "glsl_parser_extras.h" >> #include "glsl_types.h" > > _______________________________________________ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev > _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev