Endian problem on Mac OS X
Brought to you by:
davi,
fc_botelho
Mac OS X allow the developer build a application running both on Intel platform (Little endian) or a PPC platform (Big endian).
But the .mph file built with `cmph' command won't work if you build it on a PPC platform but loaded with a Intel machine.
The problem is the way cmph_save/cmph_load function save/load cmph_uint32 and cmph_float32 variables. I've fixed the code. Now cmph will always use big endian to save/load these variables.
Diff files