aboutsummaryrefslogtreecommitdiff
path: root/shared
diff options
context:
space:
mode:
Diffstat (limited to 'shared')
-rw-r--r--shared/shared.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/shared/shared.h b/shared/shared.h
index 0e60dbd..73e84e2 100644
--- a/shared/shared.h
+++ b/shared/shared.h
@@ -91,8 +91,13 @@ typedef unsigned short uint16;
#ifndef uchar
typedef unsigned char uchar;
#endif
+#ifdef __BIG_ENDIAN__
#define SHARED_HIOFFSET 0
#define SHARED_LOWOFFSET 1
+#else
+#define SHARED_HIOFFSET 1
+#define SHARED_LOWOFFSET 0
+#endif
#endif
#ifdef IRIX