Make the code compile also in g++ 4.7 where read/write are not
authorKim Nguyễn <kn@lri.fr>
Fri, 12 Oct 2012 20:49:46 +0000 (22:49 +0200)
committerKim 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

index 986e098..2c401a5 100644 (file)
@@ -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);