| Summary: | Add support for endianness check on FreeBSD: Fixes endianness checking on at least powerpc64le, maybe also other architectures | ||
|---|---|---|---|
| Product: | SDL | Reporter: | VVD <vvd> |
| Component: | *don't know* | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | sezeroz |
| Version: | 2.0.14 | ||
| Hardware: | All | ||
| OS: | FreeBSD | ||
| Attachments: | Add support for endianness check on FreeBSD | ||
|
Description
VVD
2021-01-03 07:36:41 UTC
Fixed, thanks! https://hg.libsdl.org/SDL/rev/240db31a2e01 Thanks! Is sys/endian.h the new way to do it? I've been using machine/endian.h for quite some time. (In reply to Ozkan Sezer from comment #3) > Is sys/endian.h the new way to do it? I've been using > machine/endian.h for quite some time. sys/endian.h is the correct way, but machine/endian.h in most cases will work too: $ grep machine/endian.h /usr/include/sys/endian.h #include <machine/endian.h> https://svnweb.freebsd.org/base/head/sys/sys/endian.h?view=markup (In reply to VVD from comment #4) > sys/endian.h is the correct way, but machine/endian.h in most cases will > work too: > $ grep machine/endian.h /usr/include/sys/endian.h > #include <machine/endian.h> > > https://svnweb.freebsd.org/base/head/sys/sys/endian.h?view=markup I see, thanks. So it's been there since 2002. |