From db29869205ecc2d7254698daac3e9027f6c92619 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 4 Mar 2015 19:17:57 -0700 Subject: mesa: include stdio.h where needed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Instead of relying on glapi.h or some other header to provide it. Acked-by: Matt Turner Reviewed-by: José Fonseca --- src/mesa/main/blit.c | 1 + src/mesa/main/debug.c | 1 + src/mesa/main/dlist.h | 2 +- src/mesa/main/errors.c | 1 + src/mesa/main/execmem.c | 1 + src/mesa/main/framebuffer.c | 2 +- src/mesa/main/imports.c | 1 + src/mesa/main/texobj.c | 1 + src/mesa/main/texstate.c | 1 + src/mesa/main/varray.c | 1 + src/mesa/main/version.c | 1 + src/mesa/math/m_vector.c | 1 + src/mesa/program/prog_statevars.c | 1 + src/mesa/tnl/t_draw.c | 2 ++ src/mesa/tnl/t_vb_render.c | 1 + src/mesa/tnl/t_vertex.c | 1 + src/mesa/vbo/vbo_exec_array.c | 1 + src/mesa/vbo/vbo_exec_draw.c | 1 + src/mesa/vbo/vbo_rebase.c | 1 + src/mesa/vbo/vbo_save_loopback.c | 1 + src/mesa/vbo/vbo_split_copy.c | 2 ++ src/mesa/x86/gen_matypes.c | 2 ++ 22 files changed, 25 insertions(+), 2 deletions(-) (limited to 'src/mesa') diff --git a/src/mesa/main/blit.c b/src/mesa/main/blit.c index 28987232140..0694466eb75 100644 --- a/src/mesa/main/blit.c +++ b/src/mesa/main/blit.c @@ -28,6 +28,7 @@ */ #include +#include #include "context.h" #include "enums.h" diff --git a/src/mesa/main/debug.c b/src/mesa/main/debug.c index 45221145015..eda49374847 100644 --- a/src/mesa/main/debug.c +++ b/src/mesa/main/debug.c @@ -23,6 +23,7 @@ * OTHER DEALINGS IN THE SOFTWARE. */ +#include #include "mtypes.h" #include "attrib.h" #include "colormac.h" diff --git a/src/mesa/main/dlist.h b/src/mesa/main/dlist.h index 6189632d478..a1214674c62 100644 --- a/src/mesa/main/dlist.h +++ b/src/mesa/main/dlist.h @@ -32,7 +32,7 @@ #ifndef DLIST_H #define DLIST_H - +#include #include "main/mtypes.h" diff --git a/src/mesa/main/errors.c b/src/mesa/main/errors.c index 33c17308a4d..8ffbf413c39 100644 --- a/src/mesa/main/errors.c +++ b/src/mesa/main/errors.c @@ -29,6 +29,7 @@ #include +#include #include "errors.h" #include "enums.h" #include "imports.h" diff --git a/src/mesa/main/execmem.c b/src/mesa/main/execmem.c index 7267cf85fb4..3a1338515fe 100644 --- a/src/mesa/main/execmem.c +++ b/src/mesa/main/execmem.c @@ -31,6 +31,7 @@ */ +#include #include "imports.h" diff --git a/src/mesa/main/framebuffer.c b/src/mesa/main/framebuffer.c index 5df1ecc4f07..4f7736a64d0 100644 --- a/src/mesa/main/framebuffer.c +++ b/src/mesa/main/framebuffer.c @@ -29,7 +29,7 @@ * ushorts, uints, etc. */ - +#include #include "glheader.h" #include "imports.h" #include "blend.h" diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c index 752cf5a429f..a7ffe229687 100644 --- a/src/mesa/main/imports.c +++ b/src/mesa/main/imports.c @@ -42,6 +42,7 @@ * OTHER DEALINGS IN THE SOFTWARE. */ +#include #include #include "c99_math.h" #include "imports.h" diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index d5aa620e1f6..e018ab9103c 100644 --- a/src/mesa/main/texobj.c +++ b/src/mesa/main/texobj.c @@ -28,6 +28,7 @@ */ +#include #include "bufferobj.h" #include "colortab.h" #include "context.h" diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c index 78ae7d235d6..0a7f983fb29 100644 --- a/src/mesa/main/texstate.c +++ b/src/mesa/main/texstate.c @@ -28,6 +28,7 @@ * Texture state handling. */ +#include #include "glheader.h" #include "bufferobj.h" #include "colormac.h" diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index 3db9e06d37d..42e7f89b264 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -24,6 +24,7 @@ */ +#include #include /* for PRId64 macro */ #include "glheader.h" diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c index 4951891cb08..8e0c3ef5b26 100644 --- a/src/mesa/main/version.c +++ b/src/mesa/main/version.c @@ -23,6 +23,7 @@ */ +#include #include "imports.h" #include "mtypes.h" #include "version.h" diff --git a/src/mesa/math/m_vector.c b/src/mesa/math/m_vector.c index ff42396b768..831f953d655 100644 --- a/src/mesa/math/m_vector.c +++ b/src/mesa/math/m_vector.c @@ -26,6 +26,7 @@ * New (3.1) transformation code written by Keith Whitwell. */ +#include #include "main/glheader.h" #include "main/imports.h" diff --git a/src/mesa/program/prog_statevars.c b/src/mesa/program/prog_statevars.c index 4cde7441fff..57b25a7e3b1 100644 --- a/src/mesa/program/prog_statevars.c +++ b/src/mesa/program/prog_statevars.c @@ -29,6 +29,7 @@ */ +#include #include "main/glheader.h" #include "main/context.h" #include "main/blend.h" diff --git a/src/mesa/tnl/t_draw.c b/src/mesa/tnl/t_draw.c index be3f059bb56..60265d60bfc 100644 --- a/src/mesa/tnl/t_draw.c +++ b/src/mesa/tnl/t_draw.c @@ -25,6 +25,8 @@ * Keith Whitwell */ +#include + #include "main/glheader.h" #include "main/bufferobj.h" #include "main/condrender.h" diff --git a/src/mesa/tnl/t_vb_render.c b/src/mesa/tnl/t_vb_render.c index a090c48d0f2..4960ac0969e 100644 --- a/src/mesa/tnl/t_vb_render.c +++ b/src/mesa/tnl/t_vb_render.c @@ -38,6 +38,7 @@ */ +#include #include "main/glheader.h" #include "main/context.h" #include "main/enums.h" diff --git a/src/mesa/tnl/t_vertex.c b/src/mesa/tnl/t_vertex.c index 90b97a092ba..369d6d945c1 100644 --- a/src/mesa/tnl/t_vertex.c +++ b/src/mesa/tnl/t_vertex.c @@ -25,6 +25,7 @@ * Keith Whitwell */ +#include #include "main/glheader.h" #include "main/context.h" #include "main/colormac.h" diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c index 8a366180b32..3ea775c0e4a 100644 --- a/src/mesa/vbo/vbo_exec_array.c +++ b/src/mesa/vbo/vbo_exec_array.c @@ -26,6 +26,7 @@ * **************************************************************************/ +#include #include "main/glheader.h" #include "main/context.h" #include "main/state.h" diff --git a/src/mesa/vbo/vbo_exec_draw.c b/src/mesa/vbo/vbo_exec_draw.c index fa5eba9212f..91f2ca43a36 100644 --- a/src/mesa/vbo/vbo_exec_draw.c +++ b/src/mesa/vbo/vbo_exec_draw.c @@ -25,6 +25,7 @@ * Keith Whitwell */ +#include #include "main/glheader.h" #include "main/bufferobj.h" #include "main/compiler.h" diff --git a/src/mesa/vbo/vbo_rebase.c b/src/mesa/vbo/vbo_rebase.c index 82a0b8e2b9d..b06df4ab276 100644 --- a/src/mesa/vbo/vbo_rebase.c +++ b/src/mesa/vbo/vbo_rebase.c @@ -46,6 +46,7 @@ * of zero. */ +#include #include "main/glheader.h" #include "main/imports.h" #include "main/mtypes.h" diff --git a/src/mesa/vbo/vbo_save_loopback.c b/src/mesa/vbo/vbo_save_loopback.c index 8c93ae86ab4..7410f1875ec 100644 --- a/src/mesa/vbo/vbo_save_loopback.c +++ b/src/mesa/vbo/vbo_save_loopback.c @@ -25,6 +25,7 @@ * **************************************************************************/ +#include #include "main/context.h" #include "main/glheader.h" #include "main/enums.h" diff --git a/src/mesa/vbo/vbo_split_copy.c b/src/mesa/vbo/vbo_split_copy.c index ca752e81060..d1107dd8419 100644 --- a/src/mesa/vbo/vbo_split_copy.c +++ b/src/mesa/vbo/vbo_split_copy.c @@ -29,6 +29,8 @@ /* Split indexed primitives with per-vertex copying. */ +#include + #include "main/glheader.h" #include "main/bufferobj.h" #include "main/imports.h" diff --git a/src/mesa/x86/gen_matypes.c b/src/mesa/x86/gen_matypes.c index 1e904aa0b13..18ffb728a2a 100644 --- a/src/mesa/x86/gen_matypes.c +++ b/src/mesa/x86/gen_matypes.c @@ -35,6 +35,8 @@ #ifndef __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS #endif + +#include #include #include "main/glheader.h" -- cgit v1.2.3