OSX Big Endian patch for dfu-util
fredo at starox.org
Mon Jan 14 22:03:00 CET 2008
Le Mon, 14 Jan 2008 21:21:27 +0100,
Harald Welte <laforge at openmoko.org> a écrit :
> On Wed, Jan 02, 2008 at 10:53:46AM +0100, Frederic Leroy wrote:
> > 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.
> does somebody using OS X know how to distinguish the different
> endianness? Is there something like the __BYTE_ORDER #define?
> I'm sure there is a way how to safely determine this at compile time.
> Once this has been addressed, I'm more than happy to merge this patch
I don't have a Mac osX machine anymore :(
Googling a bit, I found this :
Hope it helps !
More information about the device-owners