From 39a420f13e8000e2dfa53777b9e51594ba03e5d4 Mon Sep 17 00:00:00 2001 From: Christopher Peplin Date: Tue, 24 Dec 2013 12:00:20 -0500 Subject: Add test cases from vi-firmware. --- src/bitfield/bitfield.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/bitfield') 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 #include +#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__ -- cgit 1.2.3-korg