aboutsummaryrefslogtreecommitdiff
path: root/projects/CodeBlocks
diff options
context:
space:
mode:
authorAhmad Fatoum <ahmad@a3f.at>2018-02-24 23:46:27 +0100
committerAhmad Fatoum <ahmad@a3f.at>2018-02-24 23:59:56 +0100
commit1430d0190684c6f78e1bce759eae240c94fba61c (patch)
treebdf0709f9a75a25a805845997b0e356b6580bcfd /projects/CodeBlocks
parent6026ed61a5eaa43df4b2a91c8c47c8f2661d47de (diff)
downloadraylib-1430d0190684c6f78e1bce759eae240c94fba61c.tar.gz
raylib-1430d0190684c6f78e1bce759eae240c94fba61c.zip
jar_xm: Workaround for unaligned pointer accesses
jar_xm.h does some shady pointer casts leading to unaligned accesses and breaking strict aliasing. x86 has special circuitry for doing unaligned accesses, but on other architectures, it may trap and require kernel fix-up or crash outright. With this patch, one obstacle in porting raylib to the GameBoy Advance has been removed. Go for it ;-) To avoid having to rewrite that `mempool' code, insert padding before structs and instruct the compiler (GCC, most importantly), to be gentle when optimizing. This fixes #490 (Unless we got ourselves 256-bit pointers, if so, hello future!)
Diffstat (limited to 'projects/CodeBlocks')
0 files changed, 0 insertions, 0 deletions