Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use preprocessor macros instead of autoconf to detect endianness
Summary: This does not fix any particular issue but it's preferable to not rely on autoconf. This avoids endianness mess for users on BE hosts if they use their build without autoconf. The macros are carefully written to err on the side of the caution, e.g., we #error if the user manually configures a different endianness than what we detect. This is a backport of secp256k1 [[bitcoin-core/secp256k1#787 | PR787]] Test Plan: ninja check-secp256k1 Reviewers: #bitcoin_abc, majcosta Reviewed By: #bitcoin_abc, majcosta Differential Revision: https://reviews.bitcoinabc.org/D7600
- Loading branch information