commit | f86ea02de634b15ffcc1a2b6b991df5f59dba02c | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Mon Aug 12 12:04:05 2019 -0700 |
committer | Elliott Hughes <enh@google.com> | Mon Aug 12 12:11:42 2019 -0700 |
tree | 328f8df4dd2864b823420da0c4ba7fecbc170af6 | |
parent | 5af75ed172e44c781a4feb81a71113612b7f21e6 [diff] |
Use as much of the macOS endian support as we can. Turns out that although there's no <endian.h> or <sys/endian.h>, there are <machine/endian.h> and <sys/_endian.h>, and they're included by other system headers such as <dirent.h>. Reuse the contents of <sys/_endian.h> here for better interop. Bug: http://b/139203733 Test: treehugger Change-Id: Ic0e9bfa1a5b56d05e9e542839d237b6ceae4aa8c