diff --git a/src/include/switch_platform.h b/src/include/switch_platform.h index 5cf538de8e..cffc599b20 100644 --- a/src/include/switch_platform.h +++ b/src/include/switch_platform.h @@ -42,6 +42,8 @@ extern "C" { #pragma warning (disable:810 869 981 279 1469 188) #endif +#include + #ifdef _MSC_VER #ifndef FREESWITCHCORE_EXPORTS @@ -104,7 +106,6 @@ typedef unsigned long in_addr_t; #define PACKED __attribute__ ((__packed__)) #endif #include -#include #include #ifndef getpid #include diff --git a/src/mod/loggers/mod_console/mod_console.vcproj b/src/mod/loggers/mod_console/mod_console.vcproj index eff6e1319c..2938751a24 100644 --- a/src/mod/loggers/mod_console/mod_console.vcproj +++ b/src/mod/loggers/mod_console/mod_console.vcproj @@ -45,7 +45,7 @@ PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS" MinimalRebuild="true" BasicRuntimeChecks="3" - RuntimeLibrary="1" + RuntimeLibrary="3" UsePrecompiledHeader="0" WarningLevel="4" WarnAsError="true" @@ -124,7 +124,7 @@ Name="VCCLCompilerTool" AdditionalIncludeDirectories=""$(InputDir)..\..\..\include";"$(InputDir)include";"$(InputDir)..\..\..\..\libs\include"" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS" - RuntimeLibrary="0" + RuntimeLibrary="2" UsePrecompiledHeader="0" WarningLevel="4" WarnAsError="true" diff --git a/src/switch_core.c b/src/switch_core.c index 7aafd5520e..f6097310c0 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -29,6 +29,8 @@ * switch_core.c -- Main Core Library * */ + +#include #include //#define DEBUG_ALLOC diff --git a/src/switch_log.c b/src/switch_log.c index 7b3e57d5f0..93bad6c36b 100644 --- a/src/switch_log.c +++ b/src/switch_log.c @@ -164,7 +164,7 @@ SWITCH_DECLARE(void) switch_log_printf(switch_text_channel channel, char *file, len = (uint32_t)(strlen(extra_fmt) + strlen(date) + strlen(filep) + 32 + strlen(func) + strlen(fmt)); new_fmt = malloc(len+1); - snprintf(new_fmt, len, extra_fmt, date, LEVELS[level], filep, line, func, (char) 128, fmt); + snprintf(new_fmt, len, extra_fmt, date, LEVELS[level], filep, line, func, 128, fmt); fmt = new_fmt; } @@ -182,7 +182,7 @@ SWITCH_DECLARE(void) switch_log_printf(switch_text_channel channel, char *file, if (channel == SWITCH_CHANNEL_ID_LOG_CLEAN) { content = data; } else { - content = strchr(data, (char)128); + content = strchr(data, 128); } if (channel == SWITCH_CHANNEL_ID_EVENT) { diff --git a/w32/vsnet/FreeSwitchConsole.vcproj b/w32/vsnet/FreeSwitchConsole.vcproj index c7a8e47154..bfd558c1e1 100644 --- a/w32/vsnet/FreeSwitchConsole.vcproj +++ b/w32/vsnet/FreeSwitchConsole.vcproj @@ -45,7 +45,7 @@ PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE" MinimalRebuild="true" BasicRuntimeChecks="3" - RuntimeLibrary="1" + RuntimeLibrary="3" UsePrecompiledHeader="0" WarningLevel="4" WarnAsError="true" @@ -123,7 +123,7 @@ Name="VCCLCompilerTool" AdditionalIncludeDirectories=""$(InputDir)include";"$(InputDir)..\libs\include"" PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE" - RuntimeLibrary="0" + RuntimeLibrary="2" UsePrecompiledHeader="0" WarningLevel="4" WarnAsError="true"