build: Endian compatibility

- Detect endian instead of stopping configure on big-endian
- Add `byteswap.h` and `endian.h` header for compatibility with
  Windows and other operating systems that don't come with them
- Update `crypto/common.h` functions to use compat
  endian header
This commit is contained in:
Wladimir J. van der Laan
2014-12-19 09:53:43 +01:00
parent 51377c2dbe
commit 4414f5ffe1
5 changed files with 263 additions and 69 deletions

View File

@@ -141,6 +141,8 @@ BITCOIN_CORE_H = \
walletdb.h \
wallet.h \
wallet_ismine.h \
compat/byteswap.h \
compat/endian.h \
compat/sanity.h
JSON_H = \