From 46c540b93ed9e1caf0708d5a7da545b882e94fb3 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Tue, 29 Jan 2019 18:18:14 -0500 Subject: [PATCH] Add math headers for emscripten We now check for NaN in table.c and struct.c as we disallow NaN keys. --- src/core/struct.c | 1 + src/core/table.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/core/struct.c b/src/core/struct.c index 731e35da..bd3afae6 100644 --- a/src/core/struct.c +++ b/src/core/struct.c @@ -24,6 +24,7 @@ #include #include "gc.h" #include "util.h" +#include #endif /* Begin creation of a struct */ diff --git a/src/core/table.c b/src/core/table.c index a63f2430..23bd44dc 100644 --- a/src/core/table.c +++ b/src/core/table.c @@ -24,6 +24,7 @@ #include #include "gc.h" #include "util.h" +#include #endif /* Initialize a table */