projects
/
SXSI
/
XMLTree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f01f30f
)
Make the code compile also in g++ 4.7 where read/write are not
author
Kim Nguyễn
<kn@lri.fr>
Fri, 12 Oct 2012 20:49:46 +0000
(22:49 +0200)
committer
Kim Nguyễn
<kn@lri.fr>
Fri, 12 Oct 2012 20:49:46 +0000
(22:49 +0200)
pulled in the global namespace by #include <cstdio>
bit-vector.cpp
patch
|
blob
|
history
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);