diff options
-rw-r--r-- | include/pciaccess.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 */ |