misc: Made (most) of the headers c++ friendly
[simavr] / include / avr_mcu_section.h
index bce65e8..8991ac5 100644 (file)
 
 #include <stdint.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 enum {
        AVR_MMCU_TAG = 0,
        AVR_MMCU_TAG_NAME,
@@ -150,5 +154,8 @@ const uint8_t _##_tag _MMCU_ = { _tag, 1, _val }
 
 #endif /* __AVR__ */
 
+#ifdef __cplusplus
+};
+#endif
 
 #endif