From: Alexander von Gluck IV Date: Wed, 27 Aug 2014 20:37:46 +0000 (+0000) Subject: glsl: Add strings.h on non-MSC platforms X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=034842958674326b98163e2d44ddc70b45fca209;p=mesa.git glsl: Add strings.h on non-MSC platforms * IEEE Std 1003.1-2001 placed strcasecmp() in strings.h. * ISO C99 doesn't mention strcase* in string.h * On all platforms I could find, strcasecmp is in strings.h and string.h as a compatibility layer for software written pre-2001 POSIX * Technically strcasecmp should be only in strings.h and the man pages back this up. * Tested build on CentOS and Haiku Reviewed-by: Kenneth Graunke --- diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy index 2f30b8543b5..6160e265e79 100644 --- a/src/glsl/glsl_parser.yy +++ b/src/glsl/glsl_parser.yy @@ -24,6 +24,9 @@ #include #include #include +#ifndef _MSC_VER +#include +#endif #include #include "ast.h"