]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
Fix inline functions when compiling as C99.
authorJonathan Lennox <jonathan@vidyo.com>
Thu, 27 Oct 2011 16:06:12 +0000 (16:06 +0000)
committerTravis Cross <tc@traviscross.com>
Sun, 9 Feb 2014 22:34:05 +0000 (22:34 +0000)
commit50791508b18a5254bdff6013909b989cb2556a6d
treedb6e9b34ee4e24dbb8242ac5133c3e17fc4e0297
parentd1e40b088a8a91de80e8b2d705c7ae1da54be460
Fix inline functions when compiling as C99.

Make private inlines in C files 'static inline', not just 'inline', or the compiler
can discard the definition if it chooses not to inline it.

Make functions declared in header files not be declared inline (if they're defined in a
.c file).  It looks like no functions in this category are used in LibSRTP's critical
path, only for unit tests or generating AES tables.

To see the problem prior to this commit, compile with "gcc -O0 -std=gnu99".

Signed-off-by: Travis Cross <tc@traviscross.com>
This cherry-picks commit e2774dbd551ffe5f872eaec2b2d40b712a54e1ba from
libsrtp upstream.

FS-6196 --resolve
libs/srtp/crypto/cipher/aes_icm.c
libs/srtp/crypto/math/datatypes.c
libs/srtp/crypto/math/gf2_8.c
libs/srtp/crypto/math/math.c