misc: Made (most) of the headers c++ friendly
[simavr] / simavr / sim / sim_io.h
index eeb2f48..8fa338d 100644 (file)
 
 #include "sim_avr.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
  * used by the ioports to implement their own features
  * see avr_eeprom.* for an example, and avr_ioctl().
@@ -78,4 +82,8 @@ struct avr_irq_t * avr_io_getirq(avr_t * avr, uint32_t ctl, int index);
 #define AVR_IOMEM_IRQ_ALL 8
 struct avr_irq_t * avr_iomem_getirq(avr_t * avr, avr_io_addr_t addr, int index);
 
+#ifdef __cplusplus
+};
+#endif
+
 #endif /* __SIM_IO_H__ */