Commit Graph

54 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 39c3ca0014 don't define inline to nothing 2014-01-30 08:54:39 -05: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
Michael Jerris 4fc4f7495e FS-5250: --resolve fix mac build 2013-06-07 07:26:16 +00:00
Jeff Lenk dc2c11f13f FS-4768 initial add of vs2012 build support 2012-12-29 14:57:15 -06:00
Stefan Knoblich 992eafd049 [6/6] srtp: Rename AUTOMAKE_OPTS to AUTOMAKE_OPTIONS
The latter is a well known automake variable, used
to set (per-Makefile) automake options and supported
since the beginning of time (= automake 1.4).

The former is a made-up variable that doesn't really
do anything.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2011-11-04 14:22:28 +01:00
Jeff Lenk 1977aa8684 VS2010 add missing project filters 2010-08-19 10:38:54 -05:00
Jeff Lenk 7af395ef83 more tweaks for VS2010 2010-07-10 15:22:25 -05:00
Jeff Lenk a87429ac87 Add initial support for VS2010 2010-06-28 15:49:19 -05:00
Michael Jerris 49d2fecc48 a slightly more annoying yet more sane way to fix snow cat
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15868 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-12-10 04:19:49 +00:00
Michael Jerris e3ea76dd47 fix calling of sub configure.gnu files during --srcdir build (FSBUILD-211)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15661 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-11-24 23:04:21 +00:00
Michael Jerris d850453bb8 fix automated libsrtp build
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15523 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-11-18 16:08:36 +00:00
Michael Jerris d0ead01aad remove generated files from tree, this will require re-bootstrap on updated source
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13676 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-06-08 17:12:13 +00:00
Michael Jerris bbdf4744aa inital work on x64 windows build (FSBUILD-125)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12215 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-21 00:56:56 +00: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 d0f7f0f137 cleanup build warnings.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6786 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-14 03:56:11 +00:00
Michael Jerris 4110f73cf3 add msvc 2008 sln/project files
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6690 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-12 01:40:13 +00:00
Michael Jerris ce4755c362 add pic
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6676 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-11 22:01:01 +00:00
Anthony Minessale 0f1d4b9a70 don't link to installed libs, patch from stkn (fix for MODLANG-47)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6480 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-03 16:29:07 +00:00
Michael Jerris 960a2e2606 --enable-64 for 64bit suncc build
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6288 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-11-15 21:02:53 +00:00
Michael Jerris 3939523cae fix make -j build (currently only is useful for the core and core libs.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4838 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-04-03 04:42:48 +00:00
Michael Jerris 6c3abba824 fix srtp configure detection for byteswap.h to verify if bswap_64 is actually usable
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4822 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-04-01 19:28:34 +00:00
Michael Jerris 30176455d9 fix broken build in srtp
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4700 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-20 22:17:53 +00:00
Michael Jerris a592a0e8f2 remove generated files from tree
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4697 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-20 21:26:28 +00:00
Michael Jerris 8bdbdfef95 remove more generated files
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4678 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-20 06:51:36 +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 cc384fb515 removing most of the generated files from tree. You will need to run bootstrap.sh and configure again after you do this update and have autoconf, automake, and libtool installed on the box.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4662 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-19 19:26:25 +00:00
Michael Jerris 4fcdb2c057 add .update files to the libs that we can use to force rebuilds of libs
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4622 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-16 21:22:04 +00:00
Michael Jerris 5312a255a2 update in tree generated files. THe whole tree now cleanly bootstraps.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4547 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-11 12:30:24 +00:00
Michael Jerris 60f0bd4e6b git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4517 d0543943-73ff-0310-b7d9-9358b9ac24b2 2007-03-11 06:09:14 +00:00
Michael Jerris 8761a73997 change around types for better c99 compliance, fixes windows srtp build and builds that do not default to 8 bit stuct alignment.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3797 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-22 19:02:10 +00:00
Anthony Minessale 8de67dfeb6 fix srtp for stricter builds
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3706 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-18 22:34:13 +00:00
Michael Jerris ce41115185 remove -undefined-supress for OSX gcc build.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3657 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-14 22:17:56 +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
Anthony Minessale 965f8b50d5 finish solaris porting for srtp. This should work now, but still needs some more work
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2957 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-02 20:49:26 +00:00
Michael Jerris c4b5df5315 solairs port, add new files, still WIP.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2955 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-02 19:13:49 +00:00
Michael Jerris 8747f15aee add some macros in preparation for solaris port of srtp
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2951 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-02 17:03:36 +00:00
Michael Jerris 1003a4d404 Cleanups from update to new build system for windows.
More to come.


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2325 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-18 07:22:18 +00:00
Michael Jerris ae380d58ec Update to new build system for windows.
This fixes several issues when debugging code in the ide, and does better dependency tracking.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2317 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-17 19:58:55 +00:00
Michael Jerris a90b88d201 revert static runtime change for msvc. Bad idea...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2290 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-14 17:44:38 +00:00
Michael Jerris fea5980a12 Change windows build to use static runtime to make it more easily portable to older windows, and to decrease startup time on windows.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2289 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-14 16:11:08 +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