summaryrefslogtreecommitdiff
path: root/libm/powerpc/s_frexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'libm/powerpc/s_frexp.c')
-rw-r--r--libm/powerpc/s_frexp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libm/powerpc/s_frexp.c b/libm/powerpc/s_frexp.c
index 9909f2ce7..7c998f81a 100644
--- a/libm/powerpc/s_frexp.c
+++ b/libm/powerpc/s_frexp.c
@@ -21,13 +21,14 @@
#include <limits.h>
#include <math.h>
+#include <endian.h>
static const double two54 = 1.80143985094819840000e+16; /* 0x43500000, 0x00000000 */
typedef union
{
struct {
-#if defined(__BIG_ENDIAN__)
+#if (__BYTE_ORDER == __BIG_ENDIAN)
unsigned long int hi;
unsigned long int lo;
#else