From 9a81ad0f93540acc6a27dd54d56bf42e1bbcca83 Mon Sep 17 00:00:00 2001 From: David Monniaux Date: Fri, 12 Apr 2019 18:16:05 +0200 Subject: workaround for non-standard C isfinite macro in math.h --- runtime/Makefile | 2 +- runtime/include/math.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 runtime/include/math.h (limited to 'runtime') 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 -- cgit