diff options
author | Franklin Wei <git@fwei.tk> | 2019-07-09 17:34:09 -0400 |
---|---|---|
committer | Franklin Wei <git@fwei.tk> | 2019-07-09 17:34:09 -0400 |
commit | 152e415b0d0d11078578e3268776465ffc58871a (patch) | |
tree | 8c02b91f4c4bdc74878a90499efd0ed2774d281d /apps/plugins/sdl/progs/wolf3d/wl_def.h | |
parent | b1f16371b0c729ac12ff2cd654cd34a6121fa02a (diff) | |
download | rockbox-152e415b0d0d11078578e3268776465ffc58871a.tar.gz rockbox-152e415b0d0d11078578e3268776465ffc58871a.zip |
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
Diffstat (limited to 'apps/plugins/sdl/progs/wolf3d/wl_def.h')
-rw-r--r-- | apps/plugins/sdl/progs/wolf3d/wl_def.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 @@ | |||
22 | # define O_BINARY 0 | 22 | # define O_BINARY 0 |
23 | #endif | 23 | #endif |
24 | 24 | ||
25 | // needed by wolf, but is dangerous on ARM | ||
25 | #pragma pack(1) | 26 | #pragma pack(1) |
26 | 27 | ||
27 | #if defined(_arch_dreamcast) | 28 | #if defined(_arch_dreamcast) |