Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deadbeef: add patch to work around endian issues on ppc64le-musl
[ci skip]
- Loading branch information
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
This removes an invalid assumption that results in both BLARGG_LITTLE_ENDIAN | ||
and BLARGG_BIG_ENDIAN being defined on little endian musl, as we're already | ||
covered by __LITTLE_ENDIAN__/__BIG_ENDIAN__ (which is specified as a part | ||
of the ELFv2 ABI itself to be always present). Glibc was not broken because | ||
it has its own check before that. | ||
|
||
--- plugins/gme/game-music-emu-0.6pre/gme/blargg_endian.h | ||
+++ plugins/gme/game-music-emu-0.6pre/gme/blargg_endian.h | ||
@@ -36,7 +36,7 @@ | ||
#endif | ||
|
||
#if defined (MSB_FIRST) || defined (__BIG_ENDIAN__) || defined (WORDS_BIGENDIAN) || \ | ||
- defined (__sparc__) || BLARGG_CPU_POWERPC || \ | ||
+ defined (__sparc__) || \ | ||
(defined (BIG_ENDIAN) && BIG_ENDIAN+0 != 4321) | ||
#define BLARGG_BIG_ENDIAN 1 | ||
#elif !defined (__mips__) |