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/onewire.h | |
parent | updated copyright info (diff) |
added support for C++ based projects
Diffstat (limited to 'lib/onewire.h')
-rw-r--r-- | lib/onewire.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/onewire.h b/lib/onewire.h index 1410fde..b1112e1 100644 --- a/lib/onewire.h +++ b/lib/onewire.h @@ -1,6 +1,10 @@ #ifndef OneWire_h #define OneWire_h +#ifdef __cplusplus +extern "C" { +#endif + #include <inttypes.h> #include <stdbool.h> #include <avr/pgmspace.h> @@ -203,4 +207,8 @@ uint16_t owi_crc16(const uint8_t* input, uint16_t len, uint16_t crc); #endif #endif +#ifdef __cplusplus +} +#endif + #endif |