rework __swapXX to avoid the use of __statement.
authordlg <dlg@openbsd.org>
Wed, 3 Jan 2018 23:20:10 +0000 (23:20 +0000)
committerdlg <dlg@openbsd.org>
Wed, 3 Jan 2018 23:20:10 +0000 (23:20 +0000)
commit837da382461abe58acb462403e3fe895ffcc9a7e
treebf6738acf244d16513cec0ce2f917d85ef1cd6cd
parenta95c39e39e6417ffe098fbada137abd83485aadd
rework __swapXX to avoid the use of __statement.

the primary motivation of this was to allow the use of things like
htons() and htole16() as case labels. previously gcc would vomit
with "expression is not an integer constant expression" if you tried
that.

ok guenther@
sys/sys/_endian.h