From ec53d6ef2bdf0e7a087ffd45fe112290f2181656 Mon Sep 17 00:00:00 2001 From: Danny van Dyk Date: Fri, 28 Mar 2008 17:01:29 -0700 Subject: Fix function prototypes for C++ --- include/pciaccess.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/pciaccess.h b/include/pciaccess.h index 3138877..de8b4b3 100644 --- a/include/pciaccess.h +++ b/include/pciaccess.h @@ -46,6 +46,10 @@ struct pci_device_iterator; struct pci_id_match; struct pci_slot_match; +#ifdef __cplusplus +extern "C" { +#endif + int pci_device_read_rom(struct pci_device *dev, void *buffer); int __deprecated pci_device_map_region(struct pci_device *dev, @@ -126,6 +130,10 @@ int pci_device_cfg_write_u32(struct pci_device *dev, uint32_t data, int pci_device_cfg_write_bits(struct pci_device *dev, uint32_t mask, uint32_t data, pciaddr_t offset); +#ifdef __cplusplus +} +#endif + /** * \name Mapping flags passed to \c pci_device_map_range */ -- cgit v1.2.3