[flac-dev] Preprocessor error when trying to build integer-only

Erik de Castro Lopo mle+la at mega-nerd.com
Sun Apr 21 02:57:37 PDT 2013


Martijn van Beurden wrote:

> Hi,
> 
> I was wondering how much worse FLAC performance would be if it was 
> compiled integer-only, but while trying to do so (by adding #define 
> FLAC__INTEGER_ONLY_LIBRARY 1 to config.h, just on x86_64-linux) I got 
> this error
> 
> > ./include/private/bitmath.h:134:5: error: operator '&&' has no left 
> > operand
> 
> bitmath.h:134 is the following line
> 
> > #if && defined(__GNUC__) && (__GNUC__ >= 4 || (__GNUC__ == 3 && 
> > __GNUC_MINOR__ >= 4))
> 
> I really wonder why anyone would have left it like this. Maybe something 
> went wrong? Removing the first && solved the problem and it compiled 
> nicely. This is current git (2de567f), all tests passed after this small 
> change.

Fixed in git HEAD. Thanks for the problem report.

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/


More information about the flac-dev mailing list