[Mesa-dev] [PATCH] glsl: Add strings.h on non-MSC platforms
Kenneth Graunke
kenneth at whitecape.org
Wed Aug 27 16:17:58 PDT 2014
On Wednesday, August 27, 2014 04:55:37 PM Alexander von Gluck IV wrote:
> * 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.
> ---
> 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 2f30b85..6160e26 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"
>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140827/01db3a0c/attachment.sig>
More information about the mesa-dev
mailing list