summaryrefslogtreecommitdiff
path: root/lib/onewire.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/onewire.h
parentupdated copyright info (diff)
added support for C++ based projects
Diffstat (limited to 'lib/onewire.h')
-rw-r--r--lib/onewire.h8
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