summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose Fonseca <[email protected]>2015-03-19 11:51:08 +0000
committerJose Fonseca <[email protected]>2015-03-22 08:23:24 +0000
commit8d5c303ab965c928eef684755c2db9cd441e37ad (patch)
tree9a61653ebcd0e486b9fa814b5bc35f998e94c21e
parent60eff442772865bc98f05fe4c18bf468fff39e20 (diff)
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 <[email protected]>
-rw-r--r--include/c99_math.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/c99_math.h b/include/c99_math.h
index bd35d1b32ed..5b01d53a83a 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