aboutsummaryrefslogtreecommitdiffstats
path: root/common/xprintf.h
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2014-09-22 10:42:20 +0900
committertmk <nobody@nowhere>2014-09-22 10:42:20 +0900
commitea524d7befeb743c5316cb472f9180536ced5862 (patch)
tree1be232413b52bcac278d25be074c5394f069c283 /common/xprintf.h
parentb9e265368fde73daff069788dcb58c8230d01b32 (diff)
downloadfirmware-ea524d7befeb743c5316cb472f9180536ced5862.tar.gz
firmware-ea524d7befeb743c5316cb472f9180536ced5862.tar.bz2
firmware-ea524d7befeb743c5316cb472f9180536ced5862.zip
Adhoc fix compile error of usb_usb
Diffstat (limited to 'common/xprintf.h')
-rw-r--r--common/xprintf.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/xprintf.h b/common/xprintf.h
index f58bca817..59c6f2531 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