From 152e415b0d0d11078578e3268776465ffc58871a Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Tue, 9 Jul 2019 17:34:09 -0400 Subject: wolf3d: fix FM OPL alignment bug in a cleaner way wl_def.h has a #pragma pack(1), which causes issues when we take the address of an unaligned struct field. This fixes the issue by disabling packing in fmopl_gpl.c. Change-Id: I526880fa73226e8028855896f7efc3a66571b3ec --- apps/plugins/sdl/progs/wolf3d/wl_def.h | 1 + 1 file changed, 1 insertion(+) (limited to 'apps/plugins/sdl/progs/wolf3d/wl_def.h') diff --git a/apps/plugins/sdl/progs/wolf3d/wl_def.h b/apps/plugins/sdl/progs/wolf3d/wl_def.h index 04bbb41bfb..1b8670ffb6 100644 --- a/apps/plugins/sdl/progs/wolf3d/wl_def.h +++ b/apps/plugins/sdl/progs/wolf3d/wl_def.h @@ -22,6 +22,7 @@ # define O_BINARY 0 #endif +// needed by wolf, but is dangerous on ARM #pragma pack(1) #if defined(_arch_dreamcast) -- cgit v1.2.3