From e8721122b1418858c33fffa9daa8891598f2469f Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 20 Jan 2013 22:13:55 +0900 Subject: [PATCH] Use __attribute__((gcc_struct)) on dstatement_t. Trust Microsoft to have really weird structure layout rules. Ah, well, this fixes the weird progs errors Sock was getting. --- include/QF/pr_comp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/QF/pr_comp.h b/include/QF/pr_comp.h index 00368d80a..dfc670d27 100644 --- a/include/QF/pr_comp.h +++ b/include/QF/pr_comp.h @@ -314,7 +314,7 @@ void PR_Opcode_Init (void); typedef struct dstatement_s { pr_opcode_e op:16; pr_ushort_t a,b,c; -} dstatement_t; +} __attribute__((gcc_struct)) dstatement_t; typedef struct ddef_s { pr_ushort_t type; // if DEF_SAVEGLOBGAL bit is set