Fixed a problem with byte switching
[umurmur.git] / src / crypt.h
index e8f00c55c2cd1d08929b327f2b072328ccd1bf7f..300563e0aa5064f5ec91bacb9db07ddd58f5eb8e 100644 (file)
 #ifndef CRYPTSTATE_H_34564356
 #define CRYPTSTATE_H_34564356
 
-#ifdef HAVE_CONFIG_H
-#include <config.h>
+#ifdef NETBSD
+#include <machine/endian.h>
+#if BYTE_ORDER == BIG_ENDIAN
+#define CRYPT_BE
 #endif
+#endif
+
+#ifdef LINUX
+#include <endian.h>
+#if __BYTE_ORDER == __BIG_ENDIAN
+#define CRYPT_BE
+#endif
+#endif
+
+#include "config.h"
 
 #ifdef USE_POLARSSL
 #include <polarssl/havege.h>