mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 09:58:17 +00:00
fix evil pragmas in unix and get rid of horrible ^M in the files (dont do that)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@644 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -69,9 +69,10 @@ struct switch_loadable_module_container {
|
||||
|
||||
static struct switch_loadable_module_container loadable_modules;
|
||||
|
||||
|
||||
#pragma warning( push )
|
||||
#pragma warning( disable : 4100 )
|
||||
#ifdef WIN32
|
||||
#pragma warning( push )
|
||||
#pragma warning( disable : 4100 )
|
||||
#endif
|
||||
static void *switch_loadable_module_exec(switch_thread *thread, void *obj)
|
||||
{
|
||||
switch_status status = SWITCH_STATUS_SUCCESS;
|
||||
@@ -94,8 +95,9 @@ static void *switch_loadable_module_exec(switch_thread *thread, void *obj)
|
||||
switch_yield(1000000);
|
||||
return NULL;
|
||||
}
|
||||
#pragma warning( pop )
|
||||
|
||||
#ifdef WIN32
|
||||
#pragma warning( pop )
|
||||
#endif
|
||||
static switch_status switch_loadable_module_load_file(char *filename, switch_memory_pool *pool,
|
||||
switch_loadable_module **new_module)
|
||||
{
|
||||
@@ -507,9 +509,10 @@ SWITCH_DECLARE(int) switch_loadable_module_get_codecs(switch_memory_pool *pool,
|
||||
return i;
|
||||
|
||||
}
|
||||
|
||||
#pragma warning( push )
|
||||
#pragma warning( disable : 4100 )
|
||||
#ifdef WIN32
|
||||
#pragma warning( push )
|
||||
#pragma warning( disable : 4100 )
|
||||
#endif
|
||||
SWITCH_DECLARE(int) switch_loadable_module_get_codecs_sorted(switch_memory_pool *pool, switch_codec_interface **array,
|
||||
int arraylen, char **prefs, int preflen)
|
||||
{
|
||||
@@ -527,7 +530,9 @@ SWITCH_DECLARE(int) switch_loadable_module_get_codecs_sorted(switch_memory_pool
|
||||
|
||||
return i;
|
||||
}
|
||||
#pragma warning( pop )
|
||||
#ifdef WIN32
|
||||
#pragma warning( pop )
|
||||
#endif
|
||||
|
||||
SWITCH_DECLARE(switch_status) switch_api_execute(char *cmd, char *arg, char *retbuf, size_t len)
|
||||
{
|
||||
|
Reference in New Issue
Block a user