[mupen64plus-ui-console] 62/172: Don't use _BIG_ENDIAN to check for endianness

Sven Eckelmann ecsv-guest at moszumanska.debian.org
Thu Nov 26 06:07:31 UTC 2015


This is an automated email from the git hooks/post-receive script.

ecsv-guest pushed a commit to branch armhf_test
in repository mupen64plus-ui-console.

commit 9bc8c5332e3689e485eeb589233dac45e71bef7d
Author: Sven Eckelmann <sven at narfation.org>
Date:   Sun Jul 24 09:07:35 2011 +0200

    Don't use _BIG_ENDIAN to check for endianness
---
 debian/changelog                         |  2 ++
 debian/patches/big_endian_conflict.patch | 19 +++++++++++++++++++
 debian/patches/series                    |  1 +
 3 files changed, 22 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 8ff4863..9b25844 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,8 @@ mupen64plus-ui-console (1.99.4-4) UNRELEASED; urgency=low
   * debian/patches:
     - Remove obsolete default-optimisations.patch
     - Add rewrite_makefile.patch, Rewrite Makefile to fix flags and linking
+    - Add big_endian_conflict.patch, Don't use _BIG_ENDIAN to check for
+      endianness
 
  -- Sven Eckelmann <sven at narfation.org>  Sat, 23 Jul 2011 16:42:52 +0200
 
diff --git a/debian/patches/big_endian_conflict.patch b/debian/patches/big_endian_conflict.patch
new file mode 100644
index 0000000..947ec1a
--- /dev/null
+++ b/debian/patches/big_endian_conflict.patch
@@ -0,0 +1,19 @@
+Description: Don't use _BIG_ENDIAN to check for endianness
+ _BIG_ENDIAN is always enabled on some systems and would create wrong results.
+Origin: upstream, https://bitbucket.org/richard42/mupen64plus-ui-console/changeset/c8d7df4d5615
+Author: Sven Eckelmann <sven at narfation.org>
+
+---
+diff --git a/src/cheat.h b/src/cheat.h
+index 611121aa0fefdff74ac692e5a09816cb52906b1d..e44ac05cf2b5e7a58eb5be08408c752cb81c650a 100644
+--- a/src/cheat.h
++++ b/src/cheat.h
+@@ -22,7 +22,7 @@
+ #ifndef CHEAT_H
+ #define CHEAT_H
+ 
+-#ifdef _BIG_ENDIAN
++#ifdef M64P_BIG_ENDIAN
+   #define sl(mot) mot
+ #else
+   #define sl(mot) (((mot & 0xFF) << 24) | ((mot & 0xFF00) <<  8) | ((mot & 0xFF0000) >>  8) | ((mot & 0xFF000000) >> 24))
diff --git a/debian/patches/series b/debian/patches/series
index c753e70..724b713 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 rewrite_makefile.patch
+big_endian_conflict.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/mupen64plus-ui-console.git



More information about the Pkg-games-commits mailing list