From 82ba90838d9cf305d83e3b2e3d3d4bd261cdc149 Mon Sep 17 00:00:00 2001 From: Adam Burns Date: Sun, 4 Jul 2021 10:07:49 +0200 Subject: [PATCH] delete inline in frontend/au_channel.h https://stackoverflow.com/questions/20762088/build-libaacplus-on-mac-os-10-9#34718904 Actually the "AuChannelOpen" method was implement in frontend/au_channel.h file, but it was a "inline" method. I think that the Makefile disabled the "inline" feature, so simple solutions: enable "inline". delete all "inline" words in au_channel.h file. and if you just need the static library without the program, you can commit the line where call this function in frontend/main.c. ./autogen.sh --with-fftw3 --with-parameter-expansion-string-replace-capable-shell=/bin/bash --- frontend/au_channel.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/au_channel.h b/frontend/au_channel.h index d471729..744c69c 100644 --- a/frontend/au_channel.h +++ b/frontend/au_channel.h @@ -12,7 +12,7 @@ typedef struct { int aFmt; } WavInfo; -inline FILE* AuChannelOpen (const char* filename, WavInfo* info) +FILE* AuChannelOpen (const char* filename, WavInfo* info) { unsigned char header[12]; unsigned char data[WAV_HEADER_SIZE]; @@ -48,18 +48,18 @@ inline FILE* AuChannelOpen (const char* filename, WavInfo* info) return handle; } -inline void AuChannelClose (FILE *audioChannel) +void AuChannelClose (FILE *audioChannel) { fclose(audioChannel); } -inline size_t AuChannelReadShort(FILE *audioChannel, short *samples, int nSamples, int *readed) +size_t AuChannelReadShort(FILE *audioChannel, short *samples, int nSamples, int *readed) { *readed = fread(samples, 2, nSamples, audioChannel); return *readed <= 0; } -inline size_t AuChannelReadFloat(FILE *audioChannel, float *samples, int nSamples, int *readed) +size_t AuChannelReadFloat(FILE *audioChannel, float *samples, int nSamples, int *readed) { *readed = fread(samples, 4, nSamples, audioChannel); return *readed <= 0;