lvqcl wrote: > 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.
Applied. Thanks. Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/ _______________________________________________ flac-dev mailing list flac-dev@xiph.org http://lists.xiph.org/mailman/listinfo/flac-dev