Compiler defines __BYTE_ORDER__ and others, but XLIO uses wrong names in the macros. Preprocessor replaces undefined names with 0, so XLIO always builds little endian branch.
Fix the byte order names and fail a build if __BYTE_ORDER__ is not defined. Otherwise, the build would be broken on a big endian system.
What
Use correct names for the byte order macros.
Why ?
Fix build on a big endian system.
Change type
What kind of change does this PR introduce?
[x] Bugfix
[ ] Feature
[ ] Code style update
[x] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Tests
[ ] Other
Check list
[ ] Code follows the style de facto guidelines of this project
[ ] Comments have been inserted in hard to understand places
Description
Compiler defines
__BYTE_ORDER__
and others, but XLIO uses wrong names in the macros. Preprocessor replaces undefined names with 0, so XLIO always builds little endian branch.Fix the byte order names and fail a build if
__BYTE_ORDER__
is not defined. Otherwise, the build would be broken on a big endian system.What
Use correct names for the byte order macros.
Why ?
Fix build on a big endian system.
Change type
What kind of change does this PR introduce?
Check list