From b6f8d635f27bd1234508679c93e04f60a36c2f1e Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Sat, 13 Oct 2012 03:16:13 +0100 Subject: build: tms470: work around glibc math.h problems The glibc definitions of INFINITY and NAN do not work with the tms470 compiler, nor do our usual fallbacks. Signed-off-by: Mans Rullgard --- compat/tms470/math.h | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 compat/tms470/math.h (limited to 'compat') diff --git a/compat/tms470/math.h b/compat/tms470/math.h new file mode 100644 index 0000000000..1104d744e7 --- /dev/null +++ b/compat/tms470/math.h @@ -0,0 +1,7 @@ +#include_next + +#undef INFINITY +#undef NAN + +#define INFINITY (*(const float*)((const unsigned []){ 0x7f800000 })) +#define NAN (*(const float*)((const unsigned []){ 0x7fc00000 })) -- cgit v1.2.3