Mellanox / libxlio

Other
41 stars 19 forks source link

issue: Fix big endian build #108

Closed pasis closed 7 months ago

pasis commented 7 months ago

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