aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/riven_scripts.h
diff options
context:
space:
mode:
authorYotam Barnoy2010-09-01 12:41:16 +0000
committerYotam Barnoy2010-09-01 12:41:16 +0000
commitcdd27ca9438906e8bd9d1942fecd69881ff14418 (patch)
tree334240ee9f7e39d60171ec90bac47a4f21b99355 /engines/mohawk/riven_scripts.h
parent81eb3cfba157b3c45095734d5e9177a199d0c351 (diff)
downloadscummvm-rg350-cdd27ca9438906e8bd9d1942fecd69881ff14418.tar.gz
scummvm-rg350-cdd27ca9438906e8bd9d1942fecd69881ff14418.tar.bz2
scummvm-rg350-cdd27ca9438906e8bd9d1942fecd69881ff14418.zip
COMMON: changed read/write endian function to use __may_alias__ attribute
This is a better solution for the gcc aliasing problem that happens when aliasing a struct onto something else. What happens is that the compiler assumes no aliasing can happen when -O2 and -O3 are activated, and a call to READ_UINT32() followed by WRITE_UINT32() and another READ_UINT32() will be optimized to return the original read value instead of re-reading. svn-id: r52480
Diffstat (limited to 'engines/mohawk/riven_scripts.h')
0 files changed, 0 insertions, 0 deletions