MSVC doesn't have a strcasecmp() function; it uses _stricmp() instead.
---
src/glsl/glsl_parser.yy | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy
index ba2dc63..00589e2 100644
--- a/src/glsl/glsl_parser.yy
+++ b/src/glsl/glsl_parser.yy
@@ -66,8 +66,14 @@ static bool match_layout_qualifier(const char *s1, const
char *s2,
*/
if (state->es_shader)
return strcmp(s1, s2);
- else
+ else {
+#if defined(_MSC_VER)
+ /* MSVC doesn't have a strcasecmp() function; instead it has _stricmp. */
+ return _stricmp(s1, s2);
+#else
return strcasecmp(s1, s2);
+#endif
+ }
}
%}
--
1.8.4.1
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev