aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2015-03-04 19:17:57 -0700
committerBrian Paul <[email protected]>2015-03-05 06:59:42 -0700
commitdb29869205ecc2d7254698daac3e9027f6c92619 (patch)
tree589bf3c2cc7d6078b04d9d922cc53f4cc3c8bc5f /src/mesa
parent028968a3ce317cead6aec29890308f8242d547dd (diff)
mesa: include stdio.h where needed
Instead of relying on glapi.h or some other header to provide it. Acked-by: Matt Turner <[email protected]> Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/blit.c1
-rw-r--r--src/mesa/main/debug.c1
-rw-r--r--src/mesa/main/dlist.h2
-rw-r--r--src/mesa/main/errors.c1
-rw-r--r--src/mesa/main/execmem.c1
-rw-r--r--src/mesa/main/framebuffer.c2
-rw-r--r--src/mesa/main/imports.c1
-rw-r--r--src/mesa/main/texobj.c1
-rw-r--r--src/mesa/main/texstate.c1
-rw-r--r--src/mesa/main/varray.c1
-rw-r--r--src/mesa/main/version.c1
-rw-r--r--src/mesa/math/m_vector.c1
-rw-r--r--src/mesa/program/prog_statevars.c1
-rw-r--r--src/mesa/tnl/t_draw.c2
-rw-r--r--src/mesa/tnl/t_vb_render.c1
-rw-r--r--src/mesa/tnl/t_vertex.c1
-rw-r--r--src/mesa/vbo/vbo_exec_array.c1
-rw-r--r--src/mesa/vbo/vbo_exec_draw.c1
-rw-r--r--src/mesa/vbo/vbo_rebase.c1
-rw-r--r--src/mesa/vbo/vbo_save_loopback.c1
-rw-r--r--src/mesa/vbo/vbo_split_copy.c2
-rw-r--r--src/mesa/x86/gen_matypes.c2
22 files changed, 25 insertions, 2 deletions
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 <stdbool.h>
+#include <stdio.h>
#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 <stdio.h>
#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 <stdio.h>
#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 <stdarg.h>
+#include <stdio.h>
#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 <stdio.h>
#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 <stdio.h>
#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 <stdio.h>
#include <stdarg.h>
#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 <stdio.h>
#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 <stdio.h>
#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 <stdio.h>
#include <inttypes.h> /* 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 <stdio.h>
#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 <stdio.h>
#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 <stdio.h>
#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 <[email protected]>
*/
+#include <stdio.h>
+
#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 <stdio.h>
#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 <[email protected]>
*/
+#include <stdio.h>
#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 <stdio.h>
#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 <[email protected]>
*/
+#include <stdio.h>
#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 <stdio.h>
#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 <stdio.h>
#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 <stdio.h>
+
#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 <stdio.h>
#include <inttypes.h>
#include "main/glheader.h"