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

Martijn van Beurden mvanb1 at gmail.com
Fri Apr 19 11:00:33 PDT 2013


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 

More information about the flac-dev mailing list