diff options
author | Christian Pointner <equinox@spreadspace.org> | 2015-06-30 21:42:21 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2015-06-30 21:42:21 +0200 |
commit | 27b0d98d085454a9f3fbaeb73ac3000e5a965db4 (patch) | |
tree | 01c5cd7a67d25a26fe1e886999c4a48dd37dd00e /lib/usbio.h | |
parent | updated copyright info (diff) |
added support for C++ based projects
Diffstat (limited to 'lib/usbio.h')
-rw-r--r-- | lib/usbio.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/usbio.h b/lib/usbio.h index 4abdb2c..3373855 100644 --- a/lib/usbio.h +++ b/lib/usbio.h @@ -24,10 +24,18 @@ #ifndef SPREADAVR_usbio_h_INCLUDED #define SPREADAVR_usbio_h_INCLUDED +#ifdef __cplusplus +extern "C" { +#endif + #include <stdint.h> void usbio_init(void); void usbio_task(void); int16_t usbio_bytes_received(void); +#ifdef __cplusplus +} +#endif + #endif |