Browse Source

Use <sys/endian.h> for endian detection on NetBSD

Signed-off-by: Nia Alarie <nia@NetBSD.org>
main
nia 1 month ago
committed by Ozkan Sezer
parent
commit
98f2e38b26
  1. 2
      include/SDL_endian.h

2
include/SDL_endian.h

@ -65,7 +65,7 @@ _m_prefetch(void *__P)
#elif defined(__OpenBSD__)
#include <endian.h>
#define SDL_BYTEORDER BYTE_ORDER
#elif defined(__FreeBSD__)
#elif defined(__FreeBSD__) || defined(__NetBSD__)
#include <sys/endian.h>
#define SDL_BYTEORDER BYTE_ORDER
#else

Loading…
Cancel
Save