utils: fix build error with g++
authorFelix Fietkau <nbd@nbd.name>
Thu, 12 Apr 2018 08:26:22 +0000 (10:26 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 12 Apr 2018 09:09:52 +0000 (11:09 +0200)
commit6eff829d788b36939325557066f58aafd6a05321
treef1f5d07f43879eb81fc4a9cce3b841b184ea6b1f
parentace64897d47b9bc7af277d8a3f8a0ff67976cba8
utils: fix build error with g++

g++ does not support __builtin_choose_expr, so we can't support
byte swapping as constant expression there.

Reported-by: Cleynhens Stijn <Stijn.Cleynhens@technicolor.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
utils.h