blob: fdb0f48939acb1491ff45a8f7764e170e8472783 [file] [log] [blame]
Thomas Heijligend96c97c2021-11-02 21:03:00 +01001/*
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)
18#include <pciutils/pci.h>
19#else
20#include <pci/pci.h>
21#endif
22
23#undef index
24
25#endif /* __PLATFORM_PCI_H__ */