Skip to content

Commit

Permalink
BYTE_ORDER: If '__DARWIN_BYTE_ORDER' isn't defined (eg. on apple-sili…
Browse files Browse the repository at this point in the history
…con) then little-endian is assumed.
  • Loading branch information
helmesjo committed Oct 30, 2024
1 parent 45c87be commit 48fa587
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libbuild2-autoconf/libbuild2/autoconf/checks/BYTE_ORDER.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@
# if defined(__DARWIN_BYTE_ORDER)
# define BYTE_ORDER __DARWIN_BYTE_ORDER
# define BIG_ENDIAN __DARWIN_BIG_ENDIAN
# define LITTLE_ENDIAN __DARWIN_LITTLE_ENDIAN
/* if '__DARWIN_BYTE_ORDER' isn't defined then
then little-endian is assumed (eg. apple-silicon)
*/
# else
# define BYTE_ORDER __DARWIN_LITTLE_ENDIAN
# define BIG_ENDIAN __DARWIN_BIG_ENDIAN
# define LITTLE_ENDIAN __DARWIN_LITTLE_ENDIAN
# endif
# elif defined(_WIN32)
Expand Down

0 comments on commit 48fa587

Please sign in to comment.