summaryrefslogtreecommitdiff
path: root/lib/anyio.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2015-06-30 21:42:21 +0200
committerChristian Pointner <equinox@spreadspace.org>2015-06-30 21:42:21 +0200
commit27b0d98d085454a9f3fbaeb73ac3000e5a965db4 (patch)
tree01c5cd7a67d25a26fe1e886999c4a48dd37dd00e /lib/anyio.h
parentupdated copyright info (diff)
added support for C++ based projects
Diffstat (limited to 'lib/anyio.h')
-rw-r--r--lib/anyio.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/anyio.h b/lib/anyio.h
index ef5a832..9d7dee4 100644
--- a/lib/anyio.h
+++ b/lib/anyio.h
@@ -24,10 +24,18 @@
#ifndef SPREADAVR_anyio_h_INCLUDED
#define SPREADAVR_anyio_h_INCLUDED
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <stdint.h>
void anyio_init(const uint32_t baudrate, const uint8_t doublespeed);
void anyio_task(void);
int16_t anyio_bytes_received(void);
+#ifdef __cplusplus
+}
+#endif
+
#endif