Mesa (master): include: Ensure float.h is included for DBL_MAX.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Sun Mar 22 08:23:37 UTC 2015


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

Author: Jose Fonseca <jfonseca at vmware.com>
Date:   Thu Mar 19 11:51:08 2015 +0000

include: Ensure float.h is included for DBL_MAX.

I didn't actually hit the issue in practice, but just happen to notice
while looking at the code.

Reviewed-by: Brian Paul <brianp at vmware.com>

---

 include/c99_math.h |    1 +
 1 file changed, 1 insertion(+)

diff --git a/include/c99_math.h b/include/c99_math.h
index bd35d1b..5b01d53 100644
--- a/include/c99_math.h
+++ b/include/c99_math.h
@@ -71,6 +71,7 @@ roundf(float x)
 #endif
 
 #ifndef INFINITY
+#include <float.h> // DBL_MAX
 #define INFINITY (DBL_MAX + DBL_MAX)
 #endif
 




More information about the mesa-commit mailing list