Mesa (master): gallium/auxiliary: Ensure c99_math.h is included.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Wed Jul 29 20:25:40 UTC 2015


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

Author: Jose Fonseca <jfonseca at vmware.com>
Date:   Wed Jul 29 20:45:09 2015 +0100

gallium/auxiliary: Ensure c99_math.h is included.

As it is needed for exp2.

Trivial.

---

 src/gallium/auxiliary/util/u_format_rgb9e5.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/util/u_format_rgb9e5.h b/src/gallium/auxiliary/util/u_format_rgb9e5.h
index 9e4b1d6..59fc291 100644
--- a/src/gallium/auxiliary/util/u_format_rgb9e5.h
+++ b/src/gallium/auxiliary/util/u_format_rgb9e5.h
@@ -26,9 +26,10 @@
 #ifndef RGB9E5_H
 #define RGB9E5_H
 
-#include <math.h>
 #include <assert.h>
 
+#include "c99_math.h"
+
 #define RGB9E5_EXPONENT_BITS          5
 #define RGB9E5_MANTISSA_BITS          9
 #define RGB9E5_EXP_BIAS               15




More information about the mesa-commit mailing list