From 2e56ba4f50ca60464cdc2afec73ca157f080ffe1 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 16 Dec 2019 13:56:11 -0800 Subject: [PATCH] Set __IEEE_LITTLE_ENDIAN for _XTENSA_EL__ (ESP32) Signed-off-by: Keith Packard --- newlib/libc/include/machine/ieeefp.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/newlib/libc/include/machine/ieeefp.h b/newlib/libc/include/machine/ieeefp.h index 536ac11fc..aa8a1903b 100644 --- a/newlib/libc/include/machine/ieeefp.h +++ b/newlib/libc/include/machine/ieeefp.h @@ -460,6 +460,10 @@ #define __IEEE_LITTLE_ENDIAN #endif +#ifdef __XTENSA_EL__ +#define __IEEE_LITTLE_ENDIAN +#endif + #ifdef __CYGWIN__ #define __OBSOLETE_MATH_DEFAULT 0 #endif