--- a/project_files/hwc/rtl/pmath.h Wed Apr 20 14:46:04 2016 -0400
+++ b/project_files/hwc/rtl/pmath.h Wed Apr 20 23:49:37 2016 -0400
@@ -21,4 +21,17 @@
int __attribute__((overloadable)) fpcrtl_abs(int x);
int64_t __attribute__((overloadable)) fpcrtl_abs(int64_t x);
+/* emscripten cannot find math.h through our cmake */
+#ifdef EMSCRIPTEN
+double exp(double);
+double log(double);
+double sin(double);
+double cos(double);
+double fabs(double);
+double ceil(double);
+double sqrt(double);
+double atan(double);
+double atan2(double, double);
+#endif
+
#endif /* PMATH_H_ */