Mesa (master): mesa: don't include math.h in compiler.h

Brian Paul brianp at kemper.freedesktop.org
Thu Feb 26 15:45:36 UTC 2015


Module: Mesa
Branch: master
Commit: 95855dd32f4228d3c99e040b76f4357593b4b5a4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=95855dd32f4228d3c99e040b76f4357593b4b5a4

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Feb 24 17:56:45 2015 -0700

mesa: don't include math.h in compiler.h

Not needed by anything in that header.  Include math.h or c99_math.h
where needed instead.

Reviewed-by: Matt Turner <mattst88 at gmail.com>
Reviewed-by: Jose Fonseca <jfonseca at vmware.com>

---

 src/mesa/drivers/dri/common/xmlconfig.c |    1 +
 src/mesa/drivers/x11/xm_tri.c           |    1 +
 src/mesa/main/compiler.h                |    1 -
 src/mesa/main/imports.c                 |    1 +
 4 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/common/xmlconfig.c b/src/mesa/drivers/dri/common/xmlconfig.c
index 518b4da..6357e92 100644
--- a/src/mesa/drivers/dri/common/xmlconfig.c
+++ b/src/mesa/drivers/dri/common/xmlconfig.c
@@ -32,6 +32,7 @@
 #include <assert.h>
 #include <expat.h>
 #include <fcntl.h>
+#include <math.h>
 #include <unistd.h>
 #include <errno.h>
 #include "main/imports.h"
diff --git a/src/mesa/drivers/x11/xm_tri.c b/src/mesa/drivers/x11/xm_tri.c
index e9ec676..528d10b 100644
--- a/src/mesa/drivers/x11/xm_tri.c
+++ b/src/mesa/drivers/x11/xm_tri.c
@@ -30,6 +30,7 @@
  */
 
 
+#include "c99_math.h"
 #include "main/imports.h"
 #include "main/mtypes.h"
 #include "glxheader.h"
diff --git a/src/mesa/main/compiler.h b/src/mesa/main/compiler.h
index a700ff9..e644e23 100644
--- a/src/mesa/main/compiler.h
+++ b/src/mesa/main/compiler.h
@@ -35,7 +35,6 @@
 
 
 #include <assert.h>
-#include <math.h>
 
 #include "util/macros.h"
 
diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c
index 896b11e..752cf5a 100644
--- a/src/mesa/main/imports.c
+++ b/src/mesa/main/imports.c
@@ -43,6 +43,7 @@
  */
 
 #include <stdarg.h>
+#include "c99_math.h"
 #include "imports.h"
 #include "context.h"
 #include "mtypes.h"




More information about the mesa-commit mailing list