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:
Tal Shnaiderman 2020-06-25 18:24:14 +03:00 committed by Thomas Monjalon
parent 080bda1a0a
commit 9af385fd89

View File

@ -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