Skip to content

Commit

Permalink
Fix the endianness. sgi is big endian.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhams committed Oct 25, 2019
1 parent 8a624eb commit f6c8587
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libdicl/configure.ac
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
AC_PREREQ(2.65)
AC_INIT([libdicl],
[0.1.11],
[0.1.12],
[[email protected]])

AC_SUBST(ACLOCAL_AMFLAGS, "-I macros")
Expand Down
4 changes: 4 additions & 0 deletions libdicl/src/repl_headers/endian.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@

#define LITTLE_ENDIAN 1234
#define BIG_ENDIAN 4321
#if defined(__sgi)
#define BYTE_ORDER 4321
#else
#define BYTE_ORDER 1234
#endif

#define __BYTE_ORDER BYTE_ORDER
#define __BIG_ENDIAN BIG_ENDIAN
Expand Down

0 comments on commit f6c8587

Please sign in to comment.