Skip to content
Browse files

fix endian.h include using x42 advice

  • Loading branch information...
1 parent 203231e commit b98e5d4094fbbc637fc83fe25d8348e41c325cf8 @MartinDelille MartinDelille committed Feb 17, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/ltc.h
View
4 src/ltc.h
@@ -48,8 +48,8 @@ extern "C" {
# if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
# define LTC_BIG_ENDIAN
# endif
-#else
-# include <machine/endian.h>
+#elif !defined __LITTLE_ENDIAN__
+# include <endian.h>
# if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
# define LTC_BIG_ENDIAN
# endif

0 comments on commit b98e5d4

Please sign in to comment.
Something went wrong with that request. Please try again.