From: Kim Nguyễn Date: Fri, 12 Oct 2012 20:49:46 +0000 (+0200) Subject: Make the code compile also in g++ 4.7 where read/write are not X-Git-Url: http://git.nguyen.vg/gitweb/?a=commitdiff_plain;h=1b69176b2f1b776af5f6f59ad2555238c78d3f29;hp=f01f30f68feacc70b6cb4367301f885a8407210b;p=SXSI%2FXMLTree.git Make the code compile also in g++ 4.7 where read/write are not pulled in the global namespace by #include --- 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);