From: Tal Shnaiderman Date: Thu, 25 Jun 2020 15:24:14 +0000 (+0300) Subject: eal: support endianness detection on Windows X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9af385fd890e42efa6041382dda48cc439bfd97a;p=dpdk.git 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 --- diff --git a/lib/librte_eal/include/generic/rte_byteorder.h b/lib/librte_eal/include/generic/rte_byteorder.h index 9ca960932f..a67e1d70d9 100644 --- a/lib/librte_eal/include/generic/rte_byteorder.h +++ b/lib/librte_eal/include/generic/rte_byteorder.h @@ -17,7 +17,7 @@ #include #ifdef RTE_EXEC_ENV_FREEBSD #include -#else +#elif defined RTE_EXEC_ENV_LINUX #include #endif