eal/windows: fix debug build
authorTal Shnaiderman <talshn@nvidia.com>
Mon, 13 Sep 2021 16:55:00 +0000 (19:55 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 23 Sep 2021 17:16:27 +0000 (19:16 +0200)
commit826476bc70ccb9ac4c47677d8d0685e0edac6f13
treec340fbf607eb6211a512fc7c268605a71480794d
parentbf7cf1f947bd18aa1b9673ea4188a5802741d05a
eal/windows: fix debug build

When building DPDK on Windows in debug mode the following
warning appear:

warning: token pasting of ',' and __VA_ARGS__ is a GNU extension
[-Wgnu-zero-variadic-macro-arguments] #define open(path, flags, ...)
_open(path, flags, ##__VA_ARGS__)

Modify the 'open' macro to avoid it.

Fixes: 45d62067c237 ("eal: make OS shims internal")
Cc: stable@dpdk.org
Signed-off-by: Tal Shnaiderman <talshn@nvidia.com>
Acked-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
lib/eal/windows/include/rte_os_shim.h