summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander von Gluck IV <[email protected]>2014-08-27 20:37:46 +0000
committerAlexander von Gluck IV <[email protected]>2014-08-27 20:20:58 -0400
commit034842958674326b98163e2d44ddc70b45fca209 (patch)
treefbe9e6c9f11df1ef1dc9b5dd7a725d83033648bf
parent6b48c18b034cad91eac6ee2823e34053125a74c9 (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 <[email protected]>
-rw-r--r--src/glsl/glsl_parser.yy3
1 files changed, 3 insertions, 0 deletions
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 <stdio.h>
#include <stdlib.h>
#include <string.h>
+#ifndef _MSC_VER
+#include <strings.h>
+#endif
#include <assert.h>
#include "ast.h"