projects
/
SXSI
/
XMLTree.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make the code compile also in g++ 4.7 where read/write are not
[SXSI/XMLTree.git]
/
bit-vector.cpp
diff --git
a/bit-vector.cpp
b/bit-vector.cpp
index
986e098
..
2c401a5
100644
(file)
--- a/
bit-vector.cpp
+++ b/
bit-vector.cpp
@@
-1,6
+1,10
@@
+
#include <stdexcept>
#include "bit-vector.hpp"
#include <cstdio>
+extern "C" {
+#include <unistd.h>
+}
static inline uint8_t pow2_mult8(uint8_t x){
return (~((x & (x-1))==0) + 1) & (x >> 3);