]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2009-10-23 Michael Snyder <msnyder@vmware.com>
authorMichael Snyder <msnyder@vmware.com>
Fri, 23 Oct 2009 16:11:37 +0000 (16:11 +0000)
committerMichael Snyder <msnyder@vmware.com>
Fri, 23 Oct 2009 16:11:37 +0000 (16:11 +0000)
* record.c (netorder64): Use BFD_ENDIAN_LITTLE not LITTLE_ENDIAN.
(netorder32): Ditto.
(netorder16): Ditto.

gdb/record.c

index 1f62221c0577b0c299e9cfb642843f767de4e56a..98c794fbfa43143c3c41553f346b2c3865d8faeb 100644 (file)
@@ -1955,7 +1955,7 @@ bfdcore_read (bfd *obfd, asection *osec, void *buf, int len, int *offset)
 static inline uint64_t
 netorder64 (uint64_t fromfile)
 {
-  return (BYTE_ORDER == LITTLE_ENDIAN
+  return (BYTE_ORDER == BFD_ENDIAN_LITTLE
     ? bswap_64 (fromfile) 
     : fromfile;
 }
@@ -1963,7 +1963,7 @@ netorder64 (uint64_t fromfile)
 static inline uint32_t
 netorder32 (uint32_t fromfile)
 {
-  return (BYTE_ORDER == LITTLE_ENDIAN
+  return (BYTE_ORDER == BFD_ENDIAN_LITTLE
     ? bswap_32 (fromfile) 
     : fromfile;
 }
@@ -1971,7 +1971,7 @@ netorder32 (uint32_t fromfile)
 static inline uint16_t
 netorder16 (uint16_t fromfile)
 {
-  return (BYTE_ORDER == LITTLE_ENDIAN
+  return (BYTE_ORDER == BFD_ENDIAN_LITTLE
     ? bswap_16 (fromfile) 
     : fromfile;
 }