blob: 2a524b2e7d4e6c3e4fb24a896f8f5825cf9264cb [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)
Thomas Heijligendcabdb22022-01-31 23:59:09 +010018#include <pci.h>
Thomas Heijligend96c97c2021-11-02 21:03:00 +010019#else
20#include <pci/pci.h>
21#endif
22
23#undef index
24
25#endif /* __PLATFORM_PCI_H__ */