summaryrefslogtreecommitdiff
path: root/common/sendchar.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/sendchar.h')
-rw-r--r--common/sendchar.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/sendchar.h b/common/sendchar.h
index 7c81303c7a..7a64d00c7f 100644
--- a/common/sendchar.h
+++ b/common/sendchar.h
@@ -21,7 +21,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <stdint.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* transmit a character. return 0 on success, -1 on error. */
int8_t sendchar(uint8_t c);
+#ifdef __cplusplus
+}
+#endif
+
#endif