Frederic Leroy a écrit :
Le Wed, 02 Jan 2008 00:04:31 -0800,
Daniel Hembree <[EMAIL PROTECTED]> a écrit :
this patch, applied to dfu-util's main.c, will enable OSX PPC
machines so download to the neo1973.
757,759c
func_dfu.wTransferSize =
OSSwapInt16(func_dfu.wTransferSize);
.
29,31c
#include <libkern/OSByteOrder.h>
.
I followed the instructions supplied by Krzysztof Kajkowski at,
http://lists.openmoko.org/pipermail/community/2007-July/008438.html ,
to download the source and compile it. Unfortunately, it was for i386
machines, persevering, I tried the above changes and was able to
download and use the latest openmoko and qtopia rootfs. This was
done on a G4 Titanium PB.
Happy New Year!
At least, you must check the platform ... maybe with :
#if defined(__APPLE__) && defined (OSX)
...
#endif
(Borrowed from gimp code ...)
I guess it is not sufficiant as there is x86 and ppc arch in OsX.
Happy new year :)
Actually, it's
#if defined(__POWERPC__)
...
#endif
For PowerPC MacOS.
I used it in some of my programs