summaryrefslogtreecommitdiff
path: root/libm/powerpc/s_rint.c
diff options
context:
space:
mode:
Diffstat (limited to 'libm/powerpc/s_rint.c')
-rw-r--r--libm/powerpc/s_rint.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libm/powerpc/s_rint.c b/libm/powerpc/s_rint.c
index 72c4834d0..c229515c4 100644
--- a/libm/powerpc/s_rint.c
+++ b/libm/powerpc/s_rint.c
@@ -46,13 +46,14 @@
#include <limits.h>
#include <math.h>
+#include <endian.h>
#define SET_INVALID 0x01000000UL
typedef union
{
struct {
-#if defined(__BIG_ENDIAN__)
+#if (__BYTE_ORDER == __BIG_ENDIAN)
unsigned long int hi;
unsigned long int lo;
#else