aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Hauke <mardnh@gmx.de>2015-09-03 20:52:49 +0200
committerMartin Hauke <mardnh@gmx.de>2015-09-03 20:52:49 +0200
commitf0d7dab3aca40a3f861ac182f8f3eb2bbbf89631 (patch)
tree70334649ac2593fc09e5d302b9c0ebcb735e6e7d
parent1cd151e5ad88f132d8bde648229245eb9964c2a7 (diff)
downloadtoolame-dab-f0d7dab3aca40a3f861ac182f8f3eb2bbbf89631.tar.gz
toolame-dab-f0d7dab3aca40a3f861ac182f8f3eb2bbbf89631.tar.bz2
toolame-dab-f0d7dab3aca40a3f861ac182f8f3eb2bbbf89631.zip
GCC 5.x inline function semantics fix
The compiler will warn and the linker will fail if an inline function is declared but not defined in the same translation unit. This fixes the problem by prepending 'extern' to the declaration in the header file. For a proper explanation see: https://gcc.gnu.org/gcc-5/porting_to.html
-rw-r--r--bitstream.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitstream.h b/bitstream.h
index 66f8ae4..db67ac5 100644
--- a/bitstream.h
+++ b/bitstream.h
@@ -9,7 +9,7 @@ unsigned int get1bit (Bit_stream_struc *);
void put1bit (Bit_stream_struc *, int);
unsigned long look_ahead (Bit_stream_struc *, int);
unsigned long getbits (Bit_stream_struc *, int);
-INLINE void putbits (Bit_stream_struc *, unsigned int, int);
+extern INLINE void putbits (Bit_stream_struc *, unsigned int, int);
void byte_ali_putbits (Bit_stream_struc *, unsigned int, int);
unsigned long byte_ali_getbits (Bit_stream_struc *, int);
unsigned long sstell (Bit_stream_struc *);