diff options
author | tmk <nobody@nowhere> | 2014-09-22 10:53:35 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2014-09-22 10:53:35 +0900 |
commit | dd3ab65ec348370e789f4136af2c6cdb95c2532c (patch) | |
tree | 671949de54ed5fdbb938503bd417ddf4cb70c859 /common/xprintf.h | |
parent | b9e265368fde73daff069788dcb58c8230d01b32 (diff) | |
parent | e3f4f7d8c4dd821ff47caa8a22318c674f43a4e9 (diff) |
Merge branch 'usb_usb_fix'
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
|