lib: cpp: TProtocol: support zephyr byteorder

Zephyr's byteorder is defined in
`<zephyr/sys/byteorder.h>`. However, the `bswap_xx`
macros are also defined there. They need to be `#undef`d
first when building for big-endian architectures, since
the Thrift byteorder macros are no-ops for little-endian
architectures.

Signed-off-by: Chris Friedt <cfriedt@fb.com>
1 file changed