mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 23:22:37 +02:00

Split the include of hwaccess and libpci. There is no need to have pci.h included in hwaccess. Change-Id: Ibf00356f0ef5cc92e0ec99f8fe5cdda56f47b166 Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/58883 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
25 lines
465 B
C
25 lines
465 B
C
/*
|
|
* This is a wrapper for libpci.
|
|
* ...
|
|
*/
|
|
|
|
|
|
#ifndef __PLATFORM_PCI_H__
|
|
#define __PLATFORM_PCI_H__
|
|
|
|
/*
|
|
* An old libpci version seems to use the variable name "index" which triggers
|
|
* shadowing warnings on systems which have the index() function in a default
|
|
* #include or as builtin.
|
|
*/
|
|
#define index shadow_workaround_index
|
|
|
|
#if defined (__NetBSD__)
|
|
#include <pciutils/pci.h>
|
|
#else
|
|
#include <pci/pci.h>
|
|
#endif
|
|
|
|
#undef index
|
|
|
|
#endif /* __PLATFORM_PCI_H__ */ |