[Mesa-dev] [PATCH 03/10] mesa: include stdarg.h only where it's used

Brian Paul brianp at vmware.com
Wed Feb 25 17:29:55 PST 2015


---
 src/mesa/drivers/dri/common/xmlconfig.c | 1 +
 src/mesa/main/compiler.h                | 1 -
 src/mesa/main/errors.c                  | 1 +
 src/mesa/main/imports.c                 | 3 +--
 src/mesa/program/program_parse.y        | 2 ++
 5 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/mesa/drivers/dri/common/xmlconfig.c b/src/mesa/drivers/dri/common/xmlconfig.c
index d69eb01..518b4da 100644
--- a/src/mesa/drivers/dri/common/xmlconfig.c
+++ b/src/mesa/drivers/dri/common/xmlconfig.c
@@ -27,6 +27,7 @@
  * \author Felix Kuehling
  */
 
+#include <stdarg.h>
 #include <string.h>
 #include <assert.h>
 #include <expat.h>
diff --git a/src/mesa/main/compiler.h b/src/mesa/main/compiler.h
index cf31ad1..ddbf2ea 100644
--- a/src/mesa/main/compiler.h
+++ b/src/mesa/main/compiler.h
@@ -42,7 +42,6 @@
 #include <stdio.h>
 #include <string.h>
 #include <float.h>
-#include <stdarg.h>
 
 #include "util/macros.h"
 
diff --git a/src/mesa/main/errors.c b/src/mesa/main/errors.c
index f16b33f..43e8adf 100644
--- a/src/mesa/main/errors.c
+++ b/src/mesa/main/errors.c
@@ -28,6 +28,7 @@
  */
 
 
+#include <stdarg.h>
 #include "errors.h"
 #include "enums.h"
 #include "imports.h"
diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c
index 7997b0e..896b11e 100644
--- a/src/mesa/main/imports.c
+++ b/src/mesa/main/imports.c
@@ -42,8 +42,7 @@
  * OTHER DEALINGS IN THE SOFTWARE.
  */
 
-
-
+#include <stdarg.h>
 #include "imports.h"
 #include "context.h"
 #include "mtypes.h"
diff --git a/src/mesa/program/program_parse.y b/src/mesa/program/program_parse.y
index 268ce05..716b83d 100644
--- a/src/mesa/program/program_parse.y
+++ b/src/mesa/program/program_parse.y
@@ -21,6 +21,8 @@
  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  * DEALINGS IN THE SOFTWARE.
  */
+
+#include <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-- 
1.9.1



More information about the mesa-dev mailing list