for the endian macros don't use the _ names, Darwin does not define them.

This commit is contained in:
christos 2015-09-29 20:43:16 +00:00
parent f651117f07
commit ec4b0d739b
2 changed files with 3 additions and 3 deletions

View File

@ -952,7 +952,7 @@ die_sou_create(dwarf_t *dw, Dwarf_Die str, Dwarf_Off off, tdesc_t *tdp,
int type, const char *typename)
{
Dwarf_Unsigned sz, bitsz, bitoff, maxsz=0;
#if BYTE_ORDER == _LITTLE_ENDIAN
#if BYTE_ORDER == LITTLE_ENDIAN
Dwarf_Unsigned bysz;
#endif
Dwarf_Die mem;
@ -1027,7 +1027,7 @@ die_sou_create(dwarf_t *dw, Dwarf_Die str, Dwarf_Off off, tdesc_t *tdp,
ml->ml_size = tdesc_bitsize(ml->ml_type);
if (die_unsigned(dw, mem, DW_AT_bit_offset, &bitoff, 0)) {
#if BYTE_ORDER == _BIG_ENDIAN
#if BYTE_ORDER == BIG_ENDIAN
ml->ml_offset += bitoff;
#else
/*

View File

@ -755,7 +755,7 @@ write_ctf(tdata_t *td, const char *curname, const char *newname, int flags)
elfterminate(curname, "Cannot write");
if (gelf_getehdr(elf, &ehdr)) {
#if BYTE_ORDER == _BIG_ENDIAN
#if BYTE_ORDER == BIG_ENDIAN
byteorder = ELFDATA2MSB;
#else
byteorder = ELFDATA2LSB;