[Mesa-dev] [PATCH] i965: Add missing stdio.h include to brw_compiler.h.

Iago Toral itoral at igalia.com
Tue Nov 17 02:59:00 PST 2015


Reviewed-by: Iago Toral Quiroga <itoral at igalia.com>

On Tue, 2015-11-17 at 01:38 -0800, Kenneth Graunke wrote:
> This is needed for the FILE * type in brw_print_vue_map().
> 
> Apparently, all files that include brw_compiler.h already pick this up
> via some include chain, so this isn't actually a build fix.  However,
> I have patches which introduce new consumers of brw_compiler.h that
> fail to build because of the missing #include.
> 
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
> ---
>  src/mesa/drivers/dri/i965/brw_compiler.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/mesa/drivers/dri/i965/brw_compiler.h b/src/mesa/drivers/dri/i965/brw_compiler.h
> index 3f54616..8f147d3 100644
> --- a/src/mesa/drivers/dri/i965/brw_compiler.h
> +++ b/src/mesa/drivers/dri/i965/brw_compiler.h
> @@ -23,6 +23,7 @@
>  
>  #pragma once
>  
> +#include <stdio.h>
>  #include "brw_device_info.h"
>  #include "main/mtypes.h"
>  




More information about the mesa-dev mailing list