eal/windows: fix linkage with MinGW
authorNick Connolly <nick.connolly@mayadata.io>
Sun, 22 Nov 2020 08:45:15 +0000 (08:45 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 22 Nov 2020 17:55:01 +0000 (18:55 +0100)
commit141492be9967c84ec3a41445200df8a34f5c39dd
tree851da6453fc8dc352852e99b7153494321765f39
parenta99d2521a3b8e33c34eb8fdf5719c0e8f0cf07a7
eal/windows: fix linkage with MinGW

Linking with the 'pci' driver when building with MinGW on
Windows fails with undefined symbol 'GUID_DEVCLASS_NET'.
This occurs because devguid.h is included in rte_windows.h
before INITGUID is defined.

Move the include of devguid.h after the definition of INITGUID.

Fixes: b762221ac24f ("bus/pci: support Windows with bifurcated drivers")
Cc: stable@dpdk.org
Signed-off-by: Nick Connolly <nick.connolly@mayadata.io>
Reviewed-by: Tal Shnaiderman <talshn@nvidia.com>
lib/librte_eal/windows/include/rte_windows.h