summaryrefslogtreecommitdiff
path: root/lib/dualusbio.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dualusbio.h')
-rw-r--r--lib/dualusbio.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/dualusbio.h b/lib/dualusbio.h
index 99c139e..14dcfa0 100644
--- a/lib/dualusbio.h
+++ b/lib/dualusbio.h
@@ -23,6 +23,10 @@
#ifndef SPREADAVR_dualusbio_h_INCLUDED
#define SPREADAVR_dualusbio_h_INCLUDED
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <stdio.h>
#include <stdint.h>
@@ -34,4 +38,8 @@ void dualusbio_make_stdio(uint8_t port);
int16_t dualusbio_bytes_received(uint8_t port);
int16_t dualusbio_bytes_received_std(void);
+#ifdef __cplusplus
+}
+#endif
+
#endif