diff options
author | Danny van Dyk <danny.dyk@uni-dortmund.de> | 2008-03-28 17:01:29 -0700 |
---|---|---|
committer | Ian Romanick <idr@us.ibm.com> | 2008-03-28 17:01:58 -0700 |
commit | ec53d6ef2bdf0e7a087ffd45fe112290f2181656 (patch) | |
tree | b602d8e801f497231cc58ec030c365a802218688 | |
parent | a5c862029846ddd5cecf44819f2a967e2a1672a9 (diff) |
Fix function prototypes for C++
-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 */ |