mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-12-23 03:53:43 +01:00
If we don't have <endian.h>, define __LITTLE_ENDIAN and __BIG_ENDIAN here and
guess the right value for __BYTE_ORDER. (Logical change 1.63)
This commit is contained in:
parent
5fe7ac3ff5
commit
53bd7613b7
1 changed files with 11 additions and 1 deletions
|
@ -29,7 +29,17 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
|||
/* Target-dependent definitions that are internal to libunwind but need
|
||||
to be shared with target-independent code. */
|
||||
|
||||
#include <endian.h>
|
||||
#ifdef HAVE_ENDIAN_H
|
||||
# include <endian.h>
|
||||
#else
|
||||
# define __LITTLE_ENDIAN 1234
|
||||
# define __BIG_ENDIAN 4321
|
||||
# if defined(__hpux)
|
||||
# define __BYTE_ORDER __LITTLE_ENDIAN
|
||||
# else
|
||||
# error Host has unknown byte-order.
|
||||
# endif
|
||||
#endif
|
||||
#include <libunwind.h>
|
||||
|
||||
#include "elf64.h"
|
||||
|
|
Loading…
Reference in a new issue