Update of /cvsroot/netrek/client/netrekxp/include
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv19226/include
Modified Files:
ltd_stats.h
Log Message:
Use pragma packing to make ltd work better. Ltd
needs portability as struct size still differs from linux.
Index: ltd_stats.h
===================================================================
RCS file: /cvsroot/netrek/client/netrekxp/include/ltd_stats.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- ltd_stats.h 3 Jun 2009 02:42:55 -0000 1.1
+++ ltd_stats.h 3 Jun 2009 03:27:59 -0000 1.2
@@ -95,6 +95,7 @@
/* LTD stats structure */
+#pragma pack(push,1)
struct ltd_stats {
/* How many times have I killed in this ship */
@@ -119,11 +120,7 @@
torp blow */
unsigned int plasmaed; /* number of kills made with a
plamsa */
-#if defined(_64BIT) && defined(linux)
- } __attribute__((packed)) kills;
-#else
} kills;
-#endif
/* How many times have I died in this ship */
@@ -305,12 +302,8 @@
/* damage repaired */
} weapons;
-
-#if defined(_64BIT) && defined(linux)
-} __attribute__((packed));
-#else
};
-#endif
+#pragma pack(pop)
/* LTD history structure - this is needed to calculate the LTD stats
every tick. */