Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
RedHat patch: SDL-1.2.14-byteorder.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jul 18, 2010
1 parent 2c28740 commit 4f02bd7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/SDL_endian.h
Expand Up @@ -40,6 +40,10 @@
/*@}*/

#ifndef SDL_BYTEORDER /* Not defined in SDL_config.h? */
#ifdef __linux__
#include <endian.h>
#define SDL_BYTEORDER __BYTE_ORDER
#else /* __linux __ */
#if defined(__hppa__) || \
defined(__m68k__) || defined(mc68000) || defined(_M_M68K) || \
(defined(__MIPS__) && defined(__MISPEB__)) || \
Expand All @@ -49,6 +53,7 @@
#else
#define SDL_BYTEORDER SDL_LIL_ENDIAN
#endif
#endif /* __linux __ */
#endif /* !SDL_BYTEORDER */


Expand Down

0 comments on commit 4f02bd7

Please sign in to comment.