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 f58bca817..59c6f2531 100644 --- a/common/xprintf.h +++ b/common/xprintf.h | |||
| @@ -8,6 +8,10 @@ | |||
| 8 | #include <inttypes.h> | 8 | #include <inttypes.h> |
| 9 | #include <avr/pgmspace.h> | 9 | #include <avr/pgmspace.h> |
| 10 | 10 | ||
| 11 | #ifdef __cplusplus | ||
| 12 | extern "C" { | ||
| 13 | #endif | ||
| 14 | |||
| 11 | extern void (*xfunc_out)(uint8_t); | 15 | extern void (*xfunc_out)(uint8_t); |
| 12 | #define xdev_out(func) xfunc_out = (void(*)(uint8_t))(func) | 16 | #define xdev_out(func) xfunc_out = (void(*)(uint8_t))(func) |
| 13 | 17 | ||
| @@ -99,5 +103,9 @@ char xatoi(char **str, long *ret); | |||
| 99 | Pointer to return value | 103 | Pointer to return value |
| 100 | */ | 104 | */ |
| 101 | 105 | ||
| 106 | #ifdef __cplusplus | ||
| 107 | } | ||
| 108 | #endif | ||
| 109 | |||
| 102 | #endif | 110 | #endif |
| 103 | 111 | ||
