4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-19 04:49:25 +08:00

Set __IEEE_BIG_ENDIAN for big endian RISC-V

This commit is contained in:
Marcus Comstedt 2021-02-23 22:31:16 +01:00 committed by Corinna Vinschen
parent 117ddd9dd0
commit 1a6fd3f05f

View File

@ -199,7 +199,11 @@
#endif
#ifdef __riscv
#if defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
#define __IEEE_BIG_ENDIAN
#else
#define __IEEE_LITTLE_ENDIAN
#endif
#ifdef __riscv_flen
# define _SUPPORTS_ERREXCEPT
#endif