mesa: don't include math.h in compiler.h
authorBrian Paul <brianp@vmware.com>
Wed, 25 Feb 2015 00:56:45 +0000 (17:56 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 26 Feb 2015 15:38:39 +0000 (08:38 -0700)
Not needed by anything in that header.  Include math.h or c99_math.h
where needed instead.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/mesa/drivers/dri/common/xmlconfig.c
src/mesa/drivers/x11/xm_tri.c
src/mesa/main/compiler.h
src/mesa/main/imports.c

index 518b4da994c701846c110dc77e98ad435819964e..6357e92c59ac72f67036a0538704bab803049977 100644 (file)
@@ -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"
index e9ec67640dc52060b3dfd7a84951f2f91eb2f753..528d10b27301b32bd9b1f8fb850ffe35f031c9fb 100644 (file)
@@ -30,6 +30,7 @@
  */
 
 
+#include "c99_math.h"
 #include "main/imports.h"
 #include "main/mtypes.h"
 #include "glxheader.h"
index a700ff9eb2329e2873b87bf69cb804655e594bcb..e644e2359c3fe0b18d98574331550a3298cfe81d 100644 (file)
@@ -35,7 +35,6 @@
 
 
 #include <assert.h>
-#include <math.h>
 
 #include "util/macros.h"
 
index 896b11e8233853f0105a6c8c19ec67fce1de2baa..752cf5a429f6edec79812d619a2b0e80601e8832 100644 (file)
@@ -43,6 +43,7 @@
  */
 
 #include <stdarg.h>
+#include "c99_math.h"
 #include "imports.h"
 #include "context.h"
 #include "mtypes.h"