clib: Fix libpci detection define

This commit is contained in:
RichardG867
2024-10-23 18:36:36 -03:00
parent 8333f45c9b
commit 2345666fc7

View File

@@ -146,7 +146,7 @@ pci_init_dev(uint8_t bus, uint8_t dev, uint8_t func)
if (!pacc->devices) {
libpci_scan_bus(pacc);
#if defined(_WIN32) && PCI_LIB_VERSION > 0x030800
#if defined(_WIN32) && (PCI_LIB_VERSION >= 0x030800)
/* Generate additional configuration values not generated by
libpci's emulated configuration space code on Windows. */
if ((pacc->method == PCI_ACCESS_WIN32_CFGMGR32) && !pacc->backend_data) { /* backend_data is NULL if no usable raw access method was found */