From 034842958674326b98163e2d44ddc70b45fca209 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Wed, 27 Aug 2014 20:37:46 +0000 Subject: [PATCH] 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 --- src/glsl/glsl_parser.yy | 3 +++ 1 file changed, 3 insertions(+) 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" -- 2.30.2