diff options
Diffstat (limited to 'common/xprintf.h')
-rw-r--r-- | common/xprintf.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/common/xprintf.h b/common/xprintf.h index f58bca817b..59c6f25312 100644 --- a/common/xprintf.h +++ b/common/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
|