If __FLOAT_WORD_ORDER wasn't defined by <bits/endian.h>, make it the
authordrepper <drepper>
Fri, 27 Nov 1998 11:34:04 +0000 (11:34 +0000)
committerdrepper <drepper>
Fri, 27 Nov 1998 11:34:04 +0000 (11:34 +0000)
same as __BYTE_ORDER.

string/endian.h

index 03e802f..109678a 100644 (file)
 /* This file defines `__BYTE_ORDER' for the particular machine.  */
 #include <bits/endian.h>
 
+/* Some machines may need to use a different endianness for floating point
+   values.  */
+#ifndef __FLOAT_WORD_ORDER
+# define __FLOAT_WORD_ORDER __BYTE_ORDER
+#endif
+
 #ifdef __USE_BSD
 # define LITTLE_ENDIAN __LITTLE_ENDIAN
 # define BIG_ENDIAN    __BIG_ENDIAN