Skip to content

THRIFT-5658: lib: cpp: TProtocol: support zephyr byteorder - #2681

Merged
Jens-G merged 1 commit into
apache:masterfrom
cfriedt:zephyr-sys-byteorder
Oct 25, 2022
Merged

Jens-G merged 1 commit into
apache:masterfrom
cfriedt:zephyr-sys-byteorder

Conversation

@cfriedt

@cfriedt cfriedt commented Sep 26, 2022 •

Copy link
Copy Markdown
Contributor

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

  • Did you create an Apache Jira ticket? (not required for trivial changes)
  • If a ticket exists: Does your pull request title follow the pattern "THRIFT-NNNN: describe my issue"?
  • Did you squash your changes to a single commit? (not required, but preferred)
  • Did you do your best to avoid breaking changes? If one was needed, did you label the Jira ticket with "Breaking-Change"?

cfriedt pushed a commit to zephyrproject-rtos/gsoc-2022-thrift that referenced this pull request Oct 1, 2022
cfriedt pushed a commit to zephyrproject-rtos/gsoc-2022-thrift that referenced this pull request Oct 1, 2022
With this, we're starting to clean up the commit history a bit.
See #147  for details.

apache/thrift#2687
apache/thrift#2681
apache/thrift#2680
apache/thrift#2630
apache/thrift#2682

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
cfriedt pushed a commit to zephyrproject-rtos/gsoc-2022-thrift that referenced this pull request Oct 1, 2022
With this, we're starting to clean up the commit history a bit.
See #147  for details.

apache/thrift#2687
apache/thrift#2681
apache/thrift#2680
apache/thrift#2630
apache/thrift#2682

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
cfriedt pushed a commit to zephyrproject-rtos/gsoc-2022-thrift that referenced this pull request Oct 1, 2022
With this, we're starting to clean up the commit history a bit.
See #147  for details.

apache/thrift#2687
apache/thrift#2681
apache/thrift#2680
apache/thrift#2630
apache/thrift#2682
apache/thrift#2689

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
cfriedt pushed a commit to zephyrproject-rtos/gsoc-2022-thrift that referenced this pull request Oct 2, 2022
With this, we're starting to clean up the commit history a bit.
See #147  for details.

apache/thrift#2687
apache/thrift#2681
apache/thrift#2680
apache/thrift#2630
apache/thrift#2682
apache/thrift#2689

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
@cfriedt
cfriedt force-pushed the zephyr-sys-byteorder branch from 2287a36 to 0973460 Compare October 22, 2022 16:06
@cfriedt

cfriedt commented Oct 22, 2022

Copy link
Copy Markdown
Contributor Author

rebased

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>
@cfriedt
cfriedt force-pushed the zephyr-sys-byteorder branch from 0973460 to a7f2b09 Compare October 25, 2022 11:17
@cfriedt

cfriedt commented Oct 25, 2022

Copy link
Copy Markdown
Contributor Author
  • rebased

@cfriedt cfriedt changed the title lib: cpp: TProtocol: support zephyr byteorder THRIFT-5658: lib: cpp: TProtocol: support zephyr byteorder Oct 25, 2022
@Jens-G
Jens-G merged commit 0bc818f into apache:master Oct 25, 2022
@cfriedt
cfriedt deleted the zephyr-sys-byteorder branch October 25, 2022 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants