]> git.mxchange.org Git - flightgear.git/blobdiff - src/MultiPlayer/mpmessages.hxx
Sync. w. JSBSim CVS
[flightgear.git] / src / MultiPlayer / mpmessages.hxx
index 12655a0cedd60bab97b5173d09dfdcf5ccce50ac..352eb576535a4495bd8aa92a081bd57f58c3a305 100644 (file)
@@ -37,7 +37,6 @@
 
 #include <vector>
 
-#include <plib/sg.h>
 #include <simgear/compiler.h>
 #include <simgear/props/props.hxx>
 #include <simgear/math/SGMath.hxx>
@@ -108,6 +107,12 @@ struct T_PositionMsg {
     // angular acceleration wrt the earth centered frame measured in
     // the earth centered frame
     xdr_data_t angularAccel[3];
+    // Padding. The alignment is 8 bytes on x86_64 because there are
+    // 8-byte types in the message, so the size should be explicitly
+    // rounded out to a multiple of 8. Of course, it's a bad idea to
+    // put a C struct directly on the wire, but that's a fight for
+    // another day...
+    xdr_data_t pad;
 };
 
 struct FGPropertyData {