aboutsummaryrefslogtreecommitdiff
path: root/tests/test_strlist.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2020-04-28 14:12:42 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2020-04-28 14:12:42 -0400
commit428849beb3be85cf69f3ca3029d330ee2f2d842f (patch)
tree1f87a54f617b7054c2bb7b66e4e30488c40268f4 /tests/test_strlist.c
parent64df149011bfd9a961493de31fe3f95376be280b (diff)
downloadspmc-428849beb3be85cf69f3ca3029d330ee2f2d842f.tar.gz
define MAXFLOAT if it is not already
Diffstat (limited to 'tests/test_strlist.c')
-rw-r--r--tests/test_strlist.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_strlist.c b/tests/test_strlist.c
index a4ea647..fc1ec4b 100644
--- a/tests/test_strlist.c
+++ b/tests/test_strlist.c
@@ -1,6 +1,10 @@
#include "spm.h"
#include "framework.h"
+#if !defined(MAXFLOAT)
+#define MAXFLOAT 3.40282347e+38F
+#endif
+
static const char *story_truth = "The quick brown fox jumps over the lazy dog.";
static const char *story_truth_rev = "dog. jumps over the lazy fox The quick brown";
static const char *story_truth_sort_asc = "fox dog. The quick brown jumps over the lazy";