[mythtv] [PATCH] Endian Fixes
Mino Taoyama
mythtv at taoyama.com
Fri Dec 31 10:16:45 UTC 2004
Enclosed is a patch against a 12/30/04 cvs checkout that adds the audio
fixes for big endian machines. Thanks Nigel! It replace the
WORDS_BIGENDIAN define with automatic endian detections.
The endian detection replaces
#ifdef WORDS_BIGENDIAN with #if (BYTE_ORDER == BIG_ENDIAN) ||
(__BYTE_ORDER == __BIG_ENDIAN)
#ifndef WORDS_BIGENDIAN with #if (BYTE_ORDER != BIG_ENDIAN) &&
(__BYTE_ORDER == __BIG_ENDIAN)
I also remove the TARGET_ARCH_POWERPC section in settings.pro since it
was only being used to set WORDS_BIGENDIAN. It is probably safe to keep
it in place but it is no longer needed.
The audio fix now allows any combination of Frontends an Backends to
work together.
I've compiled and tested this patch with:
MacOS X (10.3.7)
linux-x86 (FC2)
linux-powerpc (YDL 4.0)
This patch still allows a MacOS X compile without any changes to
settings.pro.
The only change I need now for a linux-powerpc build is to remove the
MMX and -march=pentiumpro from settings.pro. (I'll see if I can make
this automatic, but looking at the Qt docs it doesn't appear to provide
an obvious way to do architecture detection.)
Mino
-------------- next part --------------
A non-text attachment was scrubbed...
Name: endian-fix.patch.gz
Type: application/x-gzip
Size: 4771 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20041231/ea31a164/endian-fix.patch.bin
More information about the mythtv-dev
mailing list