From 6f9e18da2ad41f092747a54a3683bc89d256d504 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 3 Jan 2021 10:18:39 -0800 Subject: [PATCH] Fixed bug 5441 - Add support for endianness check on FreeBSD: Fixes endianness checking on at least powerpc64le, maybe also other architectures VVD Patch based on patch from FreeBSD port devel/sdl20: https://svnweb.freebsd.org/ports/head/devel/sdl20/files/patch-include_SDL__endian.h?view=log --- include/SDL_endian.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/SDL_endian.h b/include/SDL_endian.h index ee5744a13..7fd735bcc 100644 --- a/include/SDL_endian.h +++ b/include/SDL_endian.h @@ -45,6 +45,9 @@ #elif defined(__OpenBSD__) #include #define SDL_BYTEORDER BYTE_ORDER +#elif defined(__FreeBSD__) +#include +#define SDL_BYTEORDER BYTE_ORDER #else #if defined(__hppa__) || \ defined(__m68k__) || defined(mc68000) || defined(_M_M68K) || \