[Mesa-dev] [PATCH 04/15] include: Ensure float.h is included for DBL_MAX.

Jose Fonseca jfonseca at vmware.com
Fri Mar 20 06:59:30 PDT 2015


I didn't actually hit the issue in practice, but just happen to notice
while looking at the code.
---
 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
 
-- 
2.1.0



More information about the mesa-dev mailing list