]> git.mxchange.org Git - flightgear.git/commit
Oliver Schroeder:
authorehofman <ehofman>
Sun, 18 Sep 2005 12:37:18 +0000 (12:37 +0000)
committerehofman <ehofman>
Sun, 18 Sep 2005 12:37:18 +0000 (12:37 +0000)
commit7311d05c872e8f6b48ee1286aa68db02c9747aaf
tree2efbc63c553cbe50f2072d587d54ac9116b133e9
parentdcbc6369acf055b585e7711ef98b8868fc640f70
Oliver Schroeder:

I have prepared a new patch for multiplayer, which fixes endianess issues with
multiplayer code. It's basically identical to the patch I sent before my
vacation, but contains minor fixes.

Multiplayer should now be working under all unix-like environments and windows
native. The basic trick is to let configure check for endianess of the host
system.

It will not work on system not using configure in the build process (excluding
windows), ie. possibly MACOS. For those system we should provide #ifdefs in
tiny_xdr.hpp.

Erik:
I've updated the patch to use the Plib utils package for endian swapping an
used a preprocessor directive to detect endianess.
src/MultiPlayer/Makefile.am
src/MultiPlayer/mpmessages.hxx
src/MultiPlayer/mpplayer.cxx
src/MultiPlayer/multiplayrxmgr.cxx
src/MultiPlayer/multiplayrxmgr.hxx
src/MultiPlayer/tiny_xdr.cpp [new file with mode: 0644]
src/MultiPlayer/tiny_xdr.hpp [new file with mode: 0644]