shithub: qk2

Download patch

ref: 762a13333eba9d50e5b186e7047f77d541d34d1a
parent: db47532c3fa9080a1422fcc097f565da453d6cbe
author: Konstantinn Bonnet <qu7uux@gmail.com>
date: Fri Mar 27 19:58:46 EDT 2015

disable packing for client.h structs

packing resulted in bad breakage due to struct members at the end of the definition
being chopped off.
just one example of why enabling packing globally (!!!) was a horrible idea to begin with.

--- a/client/client.h
+++ b/client/client.h
@@ -21,6 +21,8 @@
 
 //#define	PARANOID			// speed sapping error checking
 
+#pragma pack off
+
 //=============================================================================
 
 typedef struct
@@ -566,3 +568,5 @@
 void x86_TimerInit( unsigned long smallest, unsigned longest );
 unsigned long *x86_TimerGetHistogram( void );
 #endif
+
+#pragma pack off
--- a/q_shared.h
+++ b/q_shared.h
@@ -20,7 +20,7 @@
 
 // q_shared.h -- included first by ALL program modules
 
-#pragma pack on
+#pragma pack on		/* FIXME: amd64 workaround for structs assumed aligned to 4 bytes */
 
 //#define id386