X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=boost%2Fboost%2Fcrc.hpp;h=6be5aa1d8b1bef83fd99fe63b0553d1c96189d81;hb=43c09d723435a5b203f2ac0c39e2086de836b386;hp=e70c8340337ba4d7fa67b3229c3553d514989284;hpb=376aaac146989c2060f4159a16c7e8238b400088;p=lyx.git diff --git a/boost/boost/crc.hpp b/boost/boost/crc.hpp index e70c834033..6be5aa1d8b 100644 --- a/boost/boost/crc.hpp +++ b/boost/boost/crc.hpp @@ -464,6 +464,10 @@ namespace detail // for some reason Borland's command line compiler (version 0x560) // chokes over this unless we do the calculation for it: typedef value_type table_type[ 0x100 ]; +#elif defined(__GNUC__) + // old versions of GCC (before 4.0.2) choke on using byte_combos + // as a constant expression when compiling with -pedantic. + typedef value_type table_type[1ul << CHAR_BIT]; #else typedef value_type table_type[ byte_combos ]; #endif