From 1b69176b2f1b776af5f6f59ad2555238c78d3f29 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kim=20Nguy=E1=BB=85n?= Date: Fri, 12 Oct 2012 22:49:46 +0200 Subject: [PATCH 1/1] Make the code compile also in g++ 4.7 where read/write are not pulled in the global namespace by #include --- bit-vector.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bit-vector.cpp b/bit-vector.cpp index 986e098..2c401a5 100644 --- a/bit-vector.cpp +++ b/bit-vector.cpp @@ -1,6 +1,10 @@ + #include #include "bit-vector.hpp" #include +extern "C" { +#include +} static inline uint8_t pow2_mult8(uint8_t x){ return (~((x & (x-1))==0) + 1) & (x >> 3); -- 2.17.1