aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2020-04-28 13:55:54 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2020-04-28 13:55:54 -0400
commit64df149011bfd9a961493de31fe3f95376be280b (patch)
tree3f2538a573a4a053cd9ee99b946c1c0b9c434a4c
parentcb9722ca99d770a015cfdaa3ca5cfb96392d2cd3 (diff)
downloadspmc-64df149011bfd9a961493de31fe3f95376be280b.tar.gz
Handle missing MAXFLOAT
-rw-r--r--include/strlist.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/strlist.h b/include/strlist.h
index 919bdc1..f887643 100644
--- a/include/strlist.h
+++ b/include/strlist.h
@@ -5,6 +5,10 @@
#ifndef SPM_STRLIST_H
#define SPM_STRLIST_H
+#if !defined(MAXFLOAT)
+#include <math.h>
+#endif
+
typedef struct {
size_t num_alloc;
size_t num_inuse;