[Mesa-dev] [PATCH mesa 04/13] util: use standard name for strstr()

Emil Velikov emil.l.velikov at gmail.com
Wed Nov 21 14:13:17 UTC 2018


On 2018/11/20, Eric Engestrom wrote:
> Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
> ---
>  src/util/u_string.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/util/u_string.h b/src/util/u_string.h
> index d74ce1db8537bda54e48..94080e540d66b9fd8381 100644
> --- a/src/util/u_string.h
> +++ b/src/util/u_string.h
> @@ -185,6 +185,7 @@ util_strncmp(const char *s1, const char *s2, size_t n)
>     return 0;
>  }
>  
> +#define strstr util_strstr

strstr seems to be a thing for MSVC 2017 [1]. I think we can drop the
helper all together.

HTH
Emil

[1] https://msdn.microsoft.com/en-us/library/z9da80kz.aspx


More information about the mesa-dev mailing list