Commit Graph

17 Commits

Author SHA1 Message Date
Jonathan Lennox 50791508b1 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
2014-02-09 22:34:05 +00:00
Michael Jerris 905225a36c revert previous change that does not correct the issue. opened a bug with apple on this issue https://bugreport.apple.com/problem/viewproblem #15938497 2014-01-29 17:00:41 -05:00
Michael Jerris f6cd2945a9 FS-5956: fix __sputc included twice due to stdio.h inlining issue 2014-01-29 11:39:03 -05:00
Brian West 0fbe609afb FSCORE-280
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11509 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-27 18:01:17 +00:00
Michael Jerris 6726bf4d34 make definition that should be static static
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4676 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-20 05:14:09 +00:00
Michael Jerris e415095df3 up the msvc warning level on srtp
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3099 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-19 06:29:49 +00:00
Michael Jerris 64a3ef3c91 resolve unused function warning, this probably works better as a macro anyhow.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2964 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-03 12:38:12 +00:00
Michael Jerris f524d3a397 remove generated file
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1393 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-08 04:04:48 +00:00
Michael Jerris f562b523fb remove gcc specific non c99 compliant optimization.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1257 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-26 15:39:05 +00:00
Michael Jerris d91f8ef358 fix all the bugs introduced by recent chainsaw massacre
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1132 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-12 20:48:47 +00:00
Brian West 255afc7c25 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1110 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-10 21:36:06 +00:00
Brian West 786bf4d1cb update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1101 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-10 15:37:20 +00:00
Michael Jerris 7d43b0c01f cleanup files that don't belong in tree
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1091 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-07 18:45:54 +00:00
Brian West 78e37908bc Add optional packetization and VAD buster options to RTP
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1090 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-07 17:32:14 +00:00
Anthony Minessale 809dfc8488 add in tree srtp to build system
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1089 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-07 16:39:49 +00:00
Michael Jerris abda472017 srtp msvc updates and cleanup
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1087 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-07 16:34:02 +00:00
Anthony Minessale b3d890ef25 add srtp
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1086 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-07 16:10:03 +00:00