mirror of https://git.suyu.dev/suyu/suyu
common: fix swap functions on Bitrig and OpenBSD
swap{16,32,64} are defined as macros on the two, but client code tries to invoke them as Common::swap{16,32,64}, which naturally doesn't work. This hack redefines the macros as inline functions in the Common namespace: the bodies of the functions are the same as the original macros, but relying on OS-specific implementation details like this is of course brittle.merge-requests/60/head
parent
6022bc8394
commit
a66204eb5c
Loading…
Reference in New Issue