mesa: include stdio.h where needed
authorBrian Paul <brianp@vmware.com>
Thu, 5 Mar 2015 02:17:57 +0000 (19:17 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 5 Mar 2015 13:59:42 +0000 (06:59 -0700)
Instead of relying on glapi.h or some other header to provide it.

Acked-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
22 files changed:
src/mesa/main/blit.c
src/mesa/main/debug.c
src/mesa/main/dlist.h
src/mesa/main/errors.c
src/mesa/main/execmem.c
src/mesa/main/framebuffer.c
src/mesa/main/imports.c
src/mesa/main/texobj.c
src/mesa/main/texstate.c
src/mesa/main/varray.c
src/mesa/main/version.c
src/mesa/math/m_vector.c
src/mesa/program/prog_statevars.c
src/mesa/tnl/t_draw.c
src/mesa/tnl/t_vb_render.c
src/mesa/tnl/t_vertex.c
src/mesa/vbo/vbo_exec_array.c
src/mesa/vbo/vbo_exec_draw.c
src/mesa/vbo/vbo_rebase.c
src/mesa/vbo/vbo_save_loopback.c
src/mesa/vbo/vbo_split_copy.c
src/mesa/x86/gen_matypes.c

index 289872321403ef5cdd33ea9fe1046f631124dc2a..0694466eb75bfa8dfa97c4018e4d9b0e37a04c43 100644 (file)
@@ -28,6 +28,7 @@
  */
 
 #include <stdbool.h>
+#include <stdio.h>
 
 #include "context.h"
 #include "enums.h"
index 4522114501528ff7f1b5bf5db5c90202d066eb04..eda493748479ac707ad38cafa00782f7a31c13cf 100644 (file)
@@ -23,6 +23,7 @@
  * OTHER DEALINGS IN THE SOFTWARE.
  */
 
+#include <stdio.h>
 #include "mtypes.h"
 #include "attrib.h"
 #include "colormac.h"
index 6189632d4783cf63c0e0e900ea7e19466f11f426..a1214674c624064029ad6e2def7a3fb206760f7b 100644 (file)
@@ -32,7 +32,7 @@
 #ifndef DLIST_H
 #define DLIST_H
 
-
+#include <stdio.h>
 #include "main/mtypes.h"
 
 
index 33c17308a4d32a2b43be4cbf4e0e46595cec675c..8ffbf413c39b0c6d7a8887a66367fc2a29c641e3 100644 (file)
@@ -29,6 +29,7 @@
 
 
 #include <stdarg.h>
+#include <stdio.h>
 #include "errors.h"
 #include "enums.h"
 #include "imports.h"
index 7267cf85fb4086e07f1f3a80c07af03e0c1ddc3f..3a1338515fe8d23f15429f7121042ab68ee1bda1 100644 (file)
@@ -31,6 +31,7 @@
  */
 
 
+#include <stdio.h>
 #include "imports.h"
 
 
index 5df1ecc4f07fef5761d55dfe4a5bacdaa8bbd44a..4f7736a64d04c526a8456bcf9fd7443bd7df3020 100644 (file)
@@ -29,7 +29,7 @@
  * ushorts, uints, etc.
  */
 
-
+#include <stdio.h>
 #include "glheader.h"
 #include "imports.h"
 #include "blend.h"
index 752cf5a429f6edec79812d619a2b0e80601e8832..a7ffe2296876cafe7718537e27e6d67ac96023c9 100644 (file)
@@ -42,6 +42,7 @@
  * OTHER DEALINGS IN THE SOFTWARE.
  */
 
+#include <stdio.h>
 #include <stdarg.h>
 #include "c99_math.h"
 #include "imports.h"
index d5aa620e1f61772ce86b5d48f7139ff7ed3c4b69..e018ab9103c2c18149b7b40bc8dc42b5a57d44ca 100644 (file)
@@ -28,6 +28,7 @@
  */
 
 
+#include <stdio.h>
 #include "bufferobj.h"
 #include "colortab.h"
 #include "context.h"
index 78ae7d235d66467085532181ff2ec3b7e97a2d7a..0a7f983fb2904018a75a4e3ada2fa6c241dd2496 100644 (file)
@@ -28,6 +28,7 @@
  * Texture state handling.
  */
 
+#include <stdio.h>
 #include "glheader.h"
 #include "bufferobj.h"
 #include "colormac.h"
index 3db9e06d37d6ce3068e6585e7f0a942e29f49356..42e7f89b264f1bfe6eb7708ed4a4a33b0afbd1c6 100644 (file)
@@ -24,6 +24,7 @@
  */
 
 
+#include <stdio.h>
 #include <inttypes.h>  /* for PRId64 macro */
 
 #include "glheader.h"
index 4951891cb08bcd6f54ac6db7789d1364f8eee547..8e0c3ef5b267e1f4299478f3681082f72b03ad8b 100644 (file)
@@ -23,6 +23,7 @@
  */
 
 
+#include <stdio.h>
 #include "imports.h"
 #include "mtypes.h"
 #include "version.h"
index ff42396b768d20f071b8411668da94a9b5577fdb..831f953d655b8a87dc3fa4be1ec3f02651f3f1d7 100644 (file)
@@ -26,6 +26,7 @@
  * New (3.1) transformation code written by Keith Whitwell.
  */
 
+#include <stdio.h>
 
 #include "main/glheader.h"
 #include "main/imports.h"
index 4cde7441fff7b30d4b52d355dc8c3b7229ebf6c0..57b25a7e3b119e49ba238f94afb82f939476d4cf 100644 (file)
@@ -29,6 +29,7 @@
  */
 
 
+#include <stdio.h>
 #include "main/glheader.h"
 #include "main/context.h"
 #include "main/blend.h"
index be3f059bb567cb80d93200af9bf8bda1326a1e8f..60265d60bfcd811edb9e183d7a28a58eb5b150c7 100644 (file)
@@ -25,6 +25,8 @@
  *    Keith Whitwell <keithw@vmware.com>
  */
 
+#include <stdio.h>
+
 #include "main/glheader.h"
 #include "main/bufferobj.h"
 #include "main/condrender.h"
index a090c48d0f2bf7023bf9d6edcdf69ebdb7b330c5..4960ac0969e9fa35cd0c575f97ad4a6b10914e69 100644 (file)
@@ -38,6 +38,7 @@
  */
 
 
+#include <stdio.h>
 #include "main/glheader.h"
 #include "main/context.h"
 #include "main/enums.h"
index 90b97a092ba904e4d3332dd585598a4f8f3e247c..369d6d945c1964b426b6e48f7d28ea52c19821c1 100644 (file)
@@ -25,6 +25,7 @@
  *    Keith Whitwell <keithw@vmware.com>
  */
 
+#include <stdio.h>
 #include "main/glheader.h"
 #include "main/context.h"
 #include "main/colormac.h"
index 8a366180b32d2c0f1804a44d2bb9ea09874da54c..3ea775c0e4a5b092288863708dd1f88dd051e840 100644 (file)
@@ -26,6 +26,7 @@
  * 
  **************************************************************************/
 
+#include <stdio.h>
 #include "main/glheader.h"
 #include "main/context.h"
 #include "main/state.h"
index fa5eba9212f6eca179eddb36a0a3a45235629fb6..91f2ca43a36ad763d57545c1747a7a00bea68259 100644 (file)
@@ -25,6 +25,7 @@
  *    Keith Whitwell <keithw@vmware.com>
  */
 
+#include <stdio.h>
 #include "main/glheader.h"
 #include "main/bufferobj.h"
 #include "main/compiler.h"
index 82a0b8e2b9d4e83c8f897c239503b41790dea3ad..b06df4ab276266353a0fd16ba3e20c51aa3a1e0e 100644 (file)
@@ -46,6 +46,7 @@
  * of zero.
  */
 
+#include <stdio.h>
 #include "main/glheader.h"
 #include "main/imports.h"
 #include "main/mtypes.h"
index 8c93ae86ab4f1fb6198142e12ad1ca7638253aed..7410f1875ecd529626523556d3c6d5590b0336e0 100644 (file)
@@ -25,6 +25,7 @@
  * 
  **************************************************************************/
 
+#include <stdio.h>
 #include "main/context.h"
 #include "main/glheader.h"
 #include "main/enums.h"
index ca752e810600361d781579c7456136771f5ef732..d1107dd8419e172df32c32aec8afd4d0186f2b74 100644 (file)
@@ -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"
index 1e904aa0b1370876b857bdf034254f1a293ca7c8..18ffb728a2a029e2a06b634719f9e7140071cb72 100644 (file)
@@ -35,6 +35,8 @@
 #ifndef __STDC_FORMAT_MACROS
 #define __STDC_FORMAT_MACROS
 #endif
+
+#include <stdio.h>
 #include <inttypes.h>
 
 #include "main/glheader.h"