diff options
Diffstat (limited to 'common/avr/xprintf.h')
-rw-r--r-- | common/avr/xprintf.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/common/avr/xprintf.h b/common/avr/xprintf.h index f58bca817b..59c6f25312 100644 --- a/common/avr/xprintf.h +++ b/common/avr/xprintf.h @@ -8,6 +8,10 @@ #include <inttypes.h>
#include <avr/pgmspace.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
extern void (*xfunc_out)(uint8_t);
#define xdev_out(func) xfunc_out = (void(*)(uint8_t))(func)
@@ -99,5 +103,9 @@ char xatoi(char **str, long *ret); Pointer to return value
*/
+#ifdef __cplusplus
+}
+#endif
+
#endif
|