1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Remove FLOAT_WORD_ORDER.

This commit is contained in:
Jonas 'Sortie' Termansen 2015-05-10 23:19:55 +02:00
parent 75cf34cb8e
commit b8c91e36f4
3 changed files with 1 additions and 9 deletions

View file

@ -38,7 +38,6 @@ __BEGIN_DECLS
/* The compiler also provides the local endianness as one of the above. */
#define __BYTE_ORDER __BYTE_ORDER__
#define __FLOAT_WORD_ORDER __FLOAT_WORD_ORDER__
/* Declare conversion macros to allow easy endian conversion. */

View file

@ -38,7 +38,6 @@ __BEGIN_DECLS
/* Easy access to the current endian. */
#define BYTE_ORDER __BYTE_ORDER
#define FLOAT_WORD_ORDER __FLOAT_WORD_ORDER
/* Easy conversion of 16-bit integers. */
#define htobe16(x) __htobe16(x)

View file

@ -34,13 +34,7 @@
#include <endian.h>
/* glibc compatibility */
#if !defined(FLOAT_WORD_ORDER) && defined(__FLOAT_WORD_ORDER)
#define FLOAT_WORD_ORDER __FLOAT_WORD_ORDER
#endif
#if FLOAT_WORD_ORDER != BYTE_ORDER || \
!(BYTE_ORDER == LITTLE_ENDIAN || BYTE_ORDER == BIG_ENDIAN)
#if !(BYTE_ORDER == LITTLE_ENDIAN || BYTE_ORDER == BIG_ENDIAN)
#error "Please add support for the endianness on your platform"
#endif