misc: Made (most) of the headers c++ friendly
[simavr] / simavr / sim / sim_gdb.h
index 49a5645..497dabf 100644 (file)
 #ifndef __SIM_GDB_H__
 #define __SIM_GDB_H__
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 int avr_gdb_init(avr_t * avr);
 
 // call from the main AVR decoder thread
 int avr_gdb_processor(avr_t * avr, uint32_t sleep);
 
+#ifdef __cplusplus
+};
+#endif
+
 #endif