aboutsummaryrefslogtreecommitdiff
path: root/arch/sparc/math-emu/sfp-util_64.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/math-emu/sfp-util_64.h')
-rw-r--r--arch/sparc/math-emu/sfp-util_64.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/sparc/math-emu/sfp-util_64.h b/arch/sparc/math-emu/sfp-util_64.h
index d17c9bc7218..425d3cf01af 100644
--- a/arch/sparc/math-emu/sfp-util_64.h
+++ b/arch/sparc/math-emu/sfp-util_64.h
@@ -112,3 +112,9 @@
#define abort() \
return 0
+
+#ifdef __BIG_ENDIAN
+#define __BYTE_ORDER __BIG_ENDIAN
+#else
+#define __BYTE_ORDER __LITTLE_ENDIAN
+#endif