[Mesa-dev] [PATCH] util: include stdlib.h in u_string.h to silence MinGW warning
Eric Engestrom
eric.engestrom at imgtec.com
Tue Oct 3 09:16:15 UTC 2017
On Monday, 2017-10-02 22:33:46 +0000, Brian Paul wrote:
> Otherwise we don't get a prototype for malloc().
Reviewed-by: Eric Engestrom <eric.engestrom at imgtec.com>
and pushed.
> ---
> src/util/u_string.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/util/u_string.h b/src/util/u_string.h
> index 48f1125..5a2a3e9 100644
> --- a/src/util/u_string.h
> +++ b/src/util/u_string.h
> @@ -38,6 +38,7 @@
> #if !defined(XF86_LIBC_H)
> #include <stdio.h>
> #endif
> +#include <stdlib.h>
> #include <stddef.h>
> #include <stdarg.h>
>
> --
> 1.9.1
>
More information about the mesa-dev
mailing list