summaryrefslogtreecommitdiff
path: root/src/sound/cocoa_s.h
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2020-12-14 00:11:39 +0100
committerMichael Lutz <michi@icosahedron.de>2021-02-13 20:08:53 +0100
commit9c9292949fa4d699c58d40abcac563a86df239dd (patch)
tree73dc0836d0e4de6c8beab14fa26982df495f070a /src/sound/cocoa_s.h
parent0f621b4956b82313923ef28233cf52919f70eca3 (diff)
downloadopenttd-9c9292949fa4d699c58d40abcac563a86df239dd.tar.xz
Codechange: Don't use cpp_offsetof in the TTO/TTD savegame loader.
Many of the member variables that are used in the oldloader are inside types that are not standard layout types. Using pointer arithmetics to determine addresses of members inside types that are not standard layout is generally undefined behaviour. If we'd use C++17, it is conditionally supported, which means each compiler may or may not support it. And even then using it for individual array elements is syntactically not supported the the standard offsetof function.
Diffstat (limited to 'src/sound/cocoa_s.h')
0 files changed, 0 insertions, 0 deletions