eal: support endianness detection on Windows
Inclusion of the endian.h header is set only for Linux OS. Windows endianness will be determined by the predefined __BYTE_ORDER__ macro. Signed-off-by: Tal Shnaiderman <talshn@mellanox.com>
This commit is contained in:
parent
080bda1a0a
commit
9af385fd89
@ -17,7 +17,7 @@
|
||||
#include <stdint.h>
|
||||
#ifdef RTE_EXEC_ENV_FREEBSD
|
||||
#include <sys/endian.h>
|
||||
#else
|
||||
#elif defined RTE_EXEC_ENV_LINUX
|
||||
#include <endian.h>
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user