diff options
author | Taylor Lookabaugh | 2017-06-12 18:39:41 -0500 |
---|---|---|
committer | Taylor Lookabaugh | 2017-06-12 18:39:41 -0500 |
commit | 915df7277afb2f1d30b632812404ce500fcffc6b (patch) | |
tree | 298526a657c08fd7679793aa9ac09bc63ca811e5 | |
parent | ac773a2d2a9bbedf30c74e6b8b7c295d225bbb1b (diff) | |
download | aur-915df7277afb2f1d30b632812404ce500fcffc6b.tar.gz |
fix compilation issue with au_channel.h
-rw-r--r-- | au.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/au.patch b/au.patch new file mode 100644 index 000000000000..602c775e3ced --- /dev/null +++ b/au.patch @@ -0,0 +1,34 @@ +diff -ura package.orig/frontend/au_channel.h package.new/frontend/au_channel.h +--- package.orig/frontend/au_channel.h 2017-06-12 16:45:07.801636703 -0500 ++++ package.new/frontend/au_channel.h 2017-06-12 18:34:47.922727878 -0500 +@@ -12,7 +12,7 @@ + int aFmt; + } WavInfo; + +-inline FILE* AuChannelOpen (const char* filename, WavInfo* info) ++static inline FILE* AuChannelOpen (const char* filename, WavInfo* info) + { + unsigned char header[12]; + unsigned char data[WAV_HEADER_SIZE]; +@@ -48,18 +48,18 @@ + return handle; + } + +-inline void AuChannelClose (FILE *audioChannel) ++static inline void AuChannelClose (FILE *audioChannel) + { + fclose(audioChannel); + } + +-inline size_t AuChannelReadShort(FILE *audioChannel, short *samples, int nSamples, int *readed) ++static inline 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) ++static inline size_t AuChannelReadFloat(FILE *audioChannel, float *samples, int nSamples, int *readed) + { + *readed = fread(samples, 4, nSamples, audioChannel); + return *readed <= 0; |