[Mesa-dev] [PATCH] glsl: Correct string.h to strings.h

Alexander von Gluck IV kallisti5 at unixzen.com
Wed Aug 27 08:35:06 PDT 2014


* IEEE Std 1003.1-2001 placed strcasecmp() in strings.h.
* On a lot of platforms, strcasecmp is in strings.h and string.h
* Technically strcasecmp should be only in strings.h
* Haiku decided to stop providing strcasecmp in string.h as it
  is a crutch to code looking in the wrong place.
---
 src/glsl/glsl_parser.yy |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy
index 2f30b85..33c2f20 100644
--- a/src/glsl/glsl_parser.yy
+++ b/src/glsl/glsl_parser.yy
@@ -23,7 +23,7 @@
  */
 #include <stdio.h>
 #include <stdlib.h>
-#include <string.h>
+#include <strings.h>
 #include <assert.h>
 
 #include "ast.h"
-- 
1.7.1



More information about the mesa-dev mailing list