gecko-dev/media/libfishsound/endian.patch

27 строки
804 B
Diff

diff --git a/media/libfishsound/include/fishsound/config.h b/media/libfishsound/include/fishsound/config.h
index 573822f..b7cae62 100644
--- a/media/libfishsound/include/fishsound/config.h
+++ b/media/libfishsound/include/fishsound/config.h
@@ -104,3 +104,8 @@
#undef HAVE_VORBISENC
#define HAVE_VORBISENC 0
#undef DEBUG
+
+#include "prcpucfg.h"
+#ifdef IS_BIG_ENDIAN
+#define WORDS_BIGENDIAN
+#endif
diff --git a/media/libfishsound/src/libfishsound/config.h b/media/libfishsound/src/libfishsound/config.h
index 573822f..b7cae62 100644
--- a/media/libfishsound/src/libfishsound/config.h
+++ b/media/libfishsound/src/libfishsound/config.h
@@ -104,3 +104,8 @@
#undef HAVE_VORBISENC
#define HAVE_VORBISENC 0
#undef DEBUG
+
+#include "prcpucfg.h"
+#ifdef IS_BIG_ENDIAN
+#define WORDS_BIGENDIAN
+#endif