diff options
author | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2013-12-24 12:00:20 -0500 |
---|---|---|
committer | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2013-12-24 12:00:20 -0500 |
commit | 39a420f13e8000e2dfa53777b9e51594ba03e5d4 (patch) | |
tree | 95d8a0975bf7016a71b64fea1162375a1b916985 /src/bitfield/bitfield.h | |
parent | bc1baf25a0844861713829c0e9e69e4a2d447cc6 (diff) |
Add test cases from vi-firmware.
Diffstat (limited to 'src/bitfield/bitfield.h')
-rw-r--r-- | src/bitfield/bitfield.h | 8 |
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__ |