-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core: endianness detection fix #9256
Conversation
Signed-off-by: Leonardo Alminana <[email protected]>
Signed-off-by: Leonardo Alminana <[email protected]>
Should we have some tests to verify it is actually working as intended? |
LGTM |
I tested this on my M3 mac and my s390 virtual machine and it worked as intended in both cases. I'm quite confident because it's not an original snippet, it's the exact same thing msgpack-c does and it leverages cmake for it. |
@edsiper, would you please help to review and merge this PR? It should be merged before #9196 @leonardo-albertovich @mirko-lazarevic flb-it-log_event_decoder and flb-it-log_event_encoder test output on x86
flb-it-log_event_decoder and flb-it-log_event_encoder test output on s390x
|
This PR addresses an issue with the byte order detection macro in
flb_endian.h
switching the buggy implementation with the proven cmake based detection mechanism used by msgpack-c.