This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH] Set __IEEE_LITTLE_ENDIAN for _XTENSA_EL__ (ESP32)
- From: Keith Packard <keithp at keithp dot com>
- To: newlib at sourceware dot org
- Cc: Keith Packard <keithp at keithp dot com>
- Date: Mon, 16 Dec 2019 13:56:11 -0800
- Subject: [PATCH] Set __IEEE_LITTLE_ENDIAN for _XTENSA_EL__ (ESP32)
Signed-off-by: Keith Packard <keithp@keithp.com>
---
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
--
2.24.0