1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-06-18 07:41:44 +02: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:
mostang.com!davidm 2003-03-19 19:25:18 +00:00
parent 5fe7ac3ff5
commit 53bd7613b7

View file

@ -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"