mac, ttaenc, alacenc: optional decoders for flacon.

This commit is contained in:
4fury-c3440d8
2023-01-22 19:17:56 +03:00
parent 0a8e81760e
commit 1322b7955d
9 changed files with 239 additions and 0 deletions
@@ -0,0 +1,21 @@
--- a/Makefile
+++ b/Makefile
@@ -2,16 +2,12 @@
# $Id: Makefile,v 1.4 2007/04/04 00:00:00 root Exp $
#
-CFLAGS = -Wall -O3 -fomit-frame-pointer -funroll-loops \
- -fforce-addr -falign-functions=4 -msse
+CFLAGS += -Wall
TTAENC = ttaenc
INSDIR = /usr/bin
ttaenc: $(patsubst %.c, %.o, $(wildcard *.c))
- gcc $^ -o $@ $(CFLAGS)
-
-%.o: %.c
- gcc -c $(CFLAGS) $<
+ $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@
install:
[ -d "$(INSDIR)" ] || mkdir $(INSDIR)
@@ -0,0 +1,13 @@
https://bugs.gentoo.org/721988
--- a/ttaenc.c
+++ b/ttaenc.c
@@ -525,7 +525,7 @@ __inline void memshl (register int *pA, register int *pB) {
*pA = *pB;
}
-__inline void hybrid_filter (fltst *fs, int *in, int mode) {
+static void hybrid_filter (fltst *fs, int *in, int mode) {
register int *pA = fs->dl;
register int *pB = fs->qm;
register int *pM = fs->dx;