summaryrefslogtreecommitdiff
path: root/libm/powerpc/w_scalb.c
diff options
context:
space:
mode:
Diffstat (limited to 'libm/powerpc/w_scalb.c')
-rw-r--r--libm/powerpc/w_scalb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libm/powerpc/w_scalb.c b/libm/powerpc/w_scalb.c
index c93c74b68..fe23ece53 100644
--- a/libm/powerpc/w_scalb.c
+++ b/libm/powerpc/w_scalb.c
@@ -19,10 +19,12 @@
**
***********************************************************************/
+#include <endian.h>
+
typedef union
{
struct {
-#if defined(__BIG_ENDIAN__)
+#if (__BYTE_ORDER == __BIG_ENDIAN)
unsigned long int hi;
unsigned long int lo;
#else