include: Ensure float.h is included for DBL_MAX.
authorJose Fonseca <jfonseca@vmware.com>
Thu, 19 Mar 2015 11:51:08 +0000 (11:51 +0000)
committerJose Fonseca <jfonseca@vmware.com>
Sun, 22 Mar 2015 08:23:24 +0000 (08:23 +0000)
I didn't actually hit the issue in practice, but just happen to notice
while looking at the code.

Reviewed-by: Brian Paul <brianp@vmware.com>
include/c99_math.h

index bd35d1b32ed659098f9e333dca7324ddf13e58f6..5b01d53a83af269094b601d30a9155ffb27c432f 100644 (file)
@@ -71,6 +71,7 @@ roundf(float x)
 #endif
 
 #ifndef INFINITY
+#include <float.h> // DBL_MAX
 #define INFINITY (DBL_MAX + DBL_MAX)
 #endif