changeset 195:e63fa5ad1902

Include float.h on platforms that don't have DBL_MAX defined in limits.h
author Jamie Bullock <jamie@jamiebullock.com>
date Wed, 12 Feb 2014 08:36:58 +0000
parents ea749bfc398c
children e764049c0a82 15fde6ea8a99
files src/scalar.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/scalar.c	Tue Feb 11 16:41:17 2014 +0000
+++ b/src/scalar.c	Wed Feb 12 08:36:58 2014 +0000
@@ -29,6 +29,10 @@
 #include <math.h>
 #include <limits.h>
 
+#ifndef DBL_MAX
+#include <float.h> /* on Linux DBL_MAX is in float.h */
+#endif
+
 #include "dywapitchtrack/dywapitchtrack.h"
 
 #include "../xtract/libxtract.h"