aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--runtime/Makefile2
-rw-r--r--runtime/include/math.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/runtime/Makefile b/runtime/Makefile
index 174a0a41..1258d941 100644
--- a/runtime/Makefile
+++ b/runtime/Makefile
@@ -42,7 +42,7 @@ INCLUDES=include/float.h include/stdarg.h include/stdbool.h \
include/stddef.h include/varargs.h include/stdalign.h \
include/stdnoreturn.h
ifeq ($(ARCH),mppa_k1c)
-INCLUDES += include/ccomp_k1c_fixes.h
+INCLUDES += include/ccomp_k1c_fixes.h include/math.h
endif
VPATH=$(ARCH)
diff --git a/runtime/include/math.h b/runtime/include/math.h
new file mode 100644
index 00000000..a61d8c17
--- /dev/null
+++ b/runtime/include/math.h
@@ -0,0 +1,3 @@
+#define isfinite(__y) (fpclassify(__y) >= FP_ZERO)
+
+#include_next <math.h>