| commit | 0bc818f363a50282910fa19ae605689954239fcb | [log] [tgz] |
|---|---|---|
| author | Chris Friedt <cfriedt@fb.com> | Mon Sep 26 16:02:50 2022 -0400 |
| committer | Jens Geyer <Jens-G@users.noreply.github.com> | Tue Oct 25 22:20:47 2022 +0200 |
| tree | 1a3a799181b8b97d792e55e4e08aadcf6e47148b | |
| parent | 0a29a48e5ac01dd49cfcc52cfec09ac5bdc4ba7c [diff] |
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>