SDL_endian.h: Use endian.h for OpenBSD. SDL-1.2
authorOzkan Sezer <sezeroz@gmail.com>
Mon, 21 Oct 2019 22:21:56 +0300
branchSDL-1.2
changeset 13154af5e8b6a3c70
parent 13152 ce19318ba64e
child 13212 3d6dc20a0974
SDL_endian.h: Use endian.h for OpenBSD.

Patch from OpenBSD CVS, authored by Donovan Watteau.
include/SDL_endian.h
     1.1 --- a/include/SDL_endian.h	Mon Oct 21 10:20:02 2019 +0300
     1.2 +++ b/include/SDL_endian.h	Mon Oct 21 22:21:56 2019 +0300
     1.3 @@ -42,7 +42,10 @@
     1.4  #ifdef __linux__
     1.5  #include <endian.h>
     1.6  #define SDL_BYTEORDER  __BYTE_ORDER
     1.7 -#else /* __linux __ */
     1.8 +#elif defined(__OpenBSD__)
     1.9 +#include <endian.h>
    1.10 +#define SDL_BYTEORDER  BYTE_ORDER
    1.11 +#else
    1.12  #if defined(__hppa__) || \
    1.13      defined(__m68k__) || defined(mc68000) || defined(_M_M68K) || \
    1.14      (defined(__MIPS__) && defined(__MIPSEB__)) || \