projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3360d2
)
glsl: Fix MSVC build (missing strcasecmp())
author
Paul Berry
<stereotype441@gmail.com>
Thu, 17 Oct 2013 20:47:35 +0000
(13:47 -0700)
committer
Paul Berry
<stereotype441@gmail.com>
Fri, 18 Oct 2013 01:11:22 +0000
(18:11 -0700)
MSVC doesn't have a strcasecmp() function; it uses _stricmp() instead.
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/glsl/glsl_parser.yy
patch
|
blob
|
history
diff --git
a/src/glsl/glsl_parser.yy
b/src/glsl/glsl_parser.yy
index ba2dc63b5253a8a0a0a5c408651a978082508c50..00589e28ea2264e233cf0016ce4d1105e3f218b7 100644
(file)
--- 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
+ }
}
%}