Skip to content

Commit

Permalink
clib: Fix libpci detection define
Browse files Browse the repository at this point in the history
  • Loading branch information
richardg867 committed Oct 23, 2024
1 parent 8333f45 commit 2345666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clib/clib_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 2345666

Please sign in to comment.