summaryrefslogtreecommitdiffstats
path: root/src/bitfield
diff options
context:
space:
mode:
authorChristopher Peplin <chris.peplin@rhubarbtech.com>2013-12-24 12:00:20 -0500
committerChristopher Peplin <chris.peplin@rhubarbtech.com>2013-12-24 12:00:20 -0500
commit39a420f13e8000e2dfa53777b9e51594ba03e5d4 (patch)
tree95d8a0975bf7016a71b64fea1162375a1b916985 /src/bitfield
parentbc1baf25a0844861713829c0e9e69e4a2d447cc6 (diff)
Add test cases from vi-firmware.
Diffstat (limited to 'src/bitfield')
-rw-r--r--src/bitfield/bitfield.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bitfield/bitfield.h b/src/bitfield/bitfield.h
index 27766733..7d9f3995 100644
--- a/src/bitfield/bitfield.h
+++ b/src/bitfield/bitfield.h
@@ -4,6 +4,10 @@
#include <stdint.h>
#include <stdbool.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Public: Reads a subset of bits from a byte array.
*
* data - the bytes in question.
@@ -55,4 +59,8 @@ void setBitField(uint64_t* data, uint64_t value, int startPos, int numBits);
*/
uint8_t nthByte(uint64_t source, int byteNum);
+#ifdef __cplusplus
+}
+#endif
+
#endif // __BITFIELD_H__