From ea524d7befeb743c5316cb472f9180536ced5862 Mon Sep 17 00:00:00 2001 From: tmk Date: Mon, 22 Sep 2014 10:42:20 +0900 Subject: Adhoc fix compile error of usb_usb --- common/xprintf.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'common/xprintf.h') 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 #include +#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 -- cgit v1.2.3