eal/windows: fix MinGW build
authorTal Shnaiderman <talshn@nvidia.com>
Wed, 21 Apr 2021 16:09:42 +0000 (19:09 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 4 May 2021 17:32:28 +0000 (19:32 +0200)
commit2231388f21ada57fdc745af9c2e2ed6ec41ead8d
tree58e75c7adf80d65576b14f1173e7d774ce50d22a
parent20c7744f8d333e9388b479b308c8c2a149110703
eal/windows: fix MinGW build

the strncasecmp macro defined in rte_os_shim.h is already
defined in MinGW-w64, as a result the compiler prints out
the warning below on function redefinition whenever compiling
a file including the header in debug mode.

lib/eal/windows/include/rte_os_shim.h:21:
warning: "strncasecmp" redefined

Fixed by defining the macro only to the clang compiler.

Fixes: 45d62067c237 ("eal: make OS shims internal")

Signed-off-by: Tal Shnaiderman <talshn@nvidia.com>
Acked-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
lib/eal/windows/include/rte_os_shim.h