Thomas Heijligen | d96c97c | 2021-11-02 21:03:00 +0100 | [diff] [blame] | 1 | /* |
| 2 | * This is a wrapper for libpci. |
| 3 | * ... |
| 4 | */ |
| 5 | |
| 6 | |
| 7 | #ifndef __PLATFORM_PCI_H__ |
| 8 | #define __PLATFORM_PCI_H__ |
| 9 | |
| 10 | /* |
| 11 | * An old libpci version seems to use the variable name "index" which triggers |
| 12 | * shadowing warnings on systems which have the index() function in a default |
| 13 | * #include or as builtin. |
| 14 | */ |
| 15 | #define index shadow_workaround_index |
| 16 | |
| 17 | #if defined (PCIUTILS_PCI_H) |
Thomas Heijligen | dcabdb2 | 2022-01-31 23:59:09 +0100 | [diff] [blame] | 18 | #include <pci.h> |
Thomas Heijligen | d96c97c | 2021-11-02 21:03:00 +0100 | [diff] [blame] | 19 | #else |
| 20 | #include <pci/pci.h> |
| 21 | #endif |
| 22 | |
| 23 | #undef index |
| 24 | |
| 25 | #endif /* __PLATFORM_PCI_H__ */ |