summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorPaul Berry <stereotype441@gmail.com>2013-10-26 10:25:46 -0700
committerPaul Berry <stereotype441@gmail.com>2013-10-29 11:10:56 -0700
commitbe63803b0c1efab19d20be3274f92fb55ead7958 (patch)
tree74319257112743e334610a610c672c66bd1afcbd /src/glsl
parente4195acab57a6ab7a604073c46e72b7a49da9e21 (diff)
downloadexternal_mesa3d-be63803b0c1efab19d20be3274f92fb55ead7958.zip
external_mesa3d-be63803b0c1efab19d20be3274f92fb55ead7958.tar.gz
external_mesa3d-be63803b0c1efab19d20be3274f92fb55ead7958.tar.bz2
glsl: Generalize MSVC fix for strcasecmp().
This will let us use strcasecmp() from anywhere inside Mesa without having to worry about the fact that it doesn't exist in MSVC. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/glsl_parser.yy8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy
index 0a0708e..4ed4105 100644
--- a/src/glsl/glsl_parser.yy
+++ b/src/glsl/glsl_parser.yy
@@ -66,14 +66,8 @@ static bool match_layout_qualifier(const char *s1, const char *s2,
*/
if (state->es_shader)
return strcmp(s1, s2);
- else {
-#if defined(_MSC_VER)
- /* MSVC doesn't have a strcasecmp() function; instead it has _stricmp. */
- return _stricmp(s1, s2);
-#else
+ else
return strcasecmp(s1, s2);
-#endif
- }
}
%}