bus/pci: fix build with Windows SDK >= 10.0.20253
authorTyler Retzlaff <roretzla@linux.microsoft.com>
Thu, 14 Jan 2021 21:22:35 +0000 (13:22 -0800)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 15 Jan 2021 13:50:00 +0000 (14:50 +0100)
commit6605c7f02e2410e932019ee554c21287c727d34f
treea980a4efa6be4ad77b4bb3c78374301a8e7c5a54
parent924e7d8f6776838b6f27a08f644e65d8a80d6c14
bus/pci: fix build with Windows SDK >= 10.0.20253

NetUIO device class and interface GUIDs are defined in system
headers starting from platform SDK v10.0.20253. Inspect SDK
version to avoid redefinition.

Pre-release SDKs do not promise compatibility and a narrow
subset of SDKs may still be subject to redefinition.

Fixes: c76ec01b4591 (bus/pci: support netuio on Windows)
Cc: stable@dpdk.org
Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
Acked-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Acked-by: Ranjit Menon <ranjit.menon@intel.com>
drivers/bus/pci/windows/pci_netuio.c
drivers/bus/pci/windows/pci_netuio.h