diff options
author | Alexander von Gluck IV <kallisti5@unixzen.com> | 2014-08-27 20:37:46 +0000 |
---|---|---|
committer | Alexander von Gluck IV <kallisti5@unixzen.com> | 2014-08-27 20:20:58 -0400 |
commit | 034842958674326b98163e2d44ddc70b45fca209 (patch) | |
tree | fbe9e6c9f11df1ef1dc9b5dd7a725d83033648bf | |
parent | 6b48c18b034cad91eac6ee2823e34053125a74c9 (diff) |
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 <kenneth@whitecape.org>
-rw-r--r-- | src/glsl/glsl_parser.yy | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy index 2f30b8543b..6160e265e7 100644 --- a/src/glsl/glsl_parser.yy +++ b/src/glsl/glsl_parser.yy @@ -24,6 +24,9 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#ifndef _MSC_VER +#include <strings.h> +#endif #include <assert.h> #include "ast.h" |