make -f Makefile.lite cannot compile test_libFLAC/endswap.c because CPU_IS_LITTLE_ENDIAN definition is missing, and also complains about parentheses in ENDSWAP_16.
1) The first patch adds the definition of CPU_IS_LITTLE_ENDIAN into
build/config.mk
which allows to build test_libFLAC with Makefile.lite
2) Current ENDSWAP_16 macro
(((((x) >> 8) & 0xFF) + ((x) & 0xFF) << 8))
adds (x >> 8) & 0xFF with x & 0xFF and then l-shifts the result by 8.
It doesn't looks right. The second patch fixes this.
1_mklite.patch
Description: Binary data
2_endswap.patch
Description: Binary data
_______________________________________________ flac-dev mailing list [email protected] http://lists.xiph.org/mailman/listinfo/flac-dev
