[Mesa-dev] [PATCH mesa 08/13] util: use standard name for strchr()
Emil Velikov
emil.l.velikov at gmail.com
Wed Nov 21 14:29:18 UTC 2018
On 2018/11/20, Eric Engestrom wrote:
> +++ b/src/util/u_string.h
> @@ -131,6 +131,7 @@ util_vasprintf(char **ret, const char *format, va_list ap)
> return util_vsnprintf(*ret, r + 1, format, ap);
> }
>
> +#define strchr util_strchr
> static inline char *
> util_strchr(const char *s, char c)
> {
Drop the helper - MSVC seems ISO compliant.
HTH
Emil
[1] https://docs.microsoft.com/en-gb/cpp/c-runtime-library/reference/strchr-wcschr-mbschr-mbschr-l?view=vs-2017
More information about the mesa-dev
mailing list