diff --git a/src/switch_speex.c b/src/switch_speex.c index 6bd23f3b2a..99a46f97e6 100644 --- a/src/switch_speex.c +++ b/src/switch_speex.c @@ -35,6 +35,10 @@ #include <speex/speex.h> #include <speex/speex_preprocess.h> +#ifdef WIN32 +#undef SWITCH_MOD_DECLARE_DATA +#define SWITCH_MOD_DECLARE_DATA __declspec(dllexport) +#endif SWITCH_MODULE_LOAD_FUNCTION(core_speex_load); SWITCH_MODULE_DEFINITION(CORE_SPEEX_MODULE, core_speex_load, NULL, NULL); diff --git a/w32/Library/FreeSwitchCore.2010.vcxproj b/w32/Library/FreeSwitchCore.2010.vcxproj index e72bdf4531..227381f06d 100644 --- a/w32/Library/FreeSwitchCore.2010.vcxproj +++ b/w32/Library/FreeSwitchCore.2010.vcxproj @@ -816,6 +816,9 @@ if not exist "$(OutDir)htdocs" xcopy "$(SolutionDir)htdocs\*.*" "$(OutDir)htdocs <Project>{03207781-0d1c-4db3-a71d-45c608f28dbd}</Project> <ReferenceOutputAssembly>false</ReferenceOutputAssembly> </ProjectReference> + <ProjectReference Include="..\..\libs\speex\win32\VS2008\libspeex\libspeex.vcxproj"> + <Project>{e972c52f-9e85-4d65-b19c-031e511e9db4}</Project> + </ProjectReference> <ProjectReference Include="..\..\libs\srtp\libsrtp.2010.vcxproj"> <Project>{eef031cb-fed8-451e-a471-91ec8d4f6750}</Project> <ReferenceOutputAssembly>false</ReferenceOutputAssembly> diff --git a/w32/Library/FreeSwitchCore.2012.vcxproj b/w32/Library/FreeSwitchCore.2012.vcxproj index 5ca8d19418..54afa46312 100644 --- a/w32/Library/FreeSwitchCore.2012.vcxproj +++ b/w32/Library/FreeSwitchCore.2012.vcxproj @@ -1,4 +1,4 @@ -<?xml version="1.0" encoding="utf-8"?> +<?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <ItemGroup Label="ProjectConfigurations"> <ProjectConfiguration Include="Debug|Win32"> @@ -838,6 +838,9 @@ if not exist "$(OutDir)htdocs" xcopy "$(SolutionDir)htdocs\*.*" "$(OutDir)htdocs <Project>{03207781-0d1c-4db3-a71d-45c608f28dbd}</Project> <ReferenceOutputAssembly>false</ReferenceOutputAssembly> </ProjectReference> + <ProjectReference Include="..\..\libs\speex\win32\VS2012\libspeex\libspeex.vcxproj"> + <Project>{e972c52f-9e85-4d65-b19c-031e511e9db4}</Project> + </ProjectReference> <ProjectReference Include="..\..\libs\srtp\libsrtp.2012.vcxproj"> <Project>{eef031cb-fed8-451e-a471-91ec8d4f6750}</Project> <ReferenceOutputAssembly>false</ReferenceOutputAssembly> @@ -888,4 +891,4 @@ if not exist "$(OutDir)htdocs" xcopy "$(SolutionDir)htdocs\*.*" "$(OutDir)htdocs <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <ImportGroup Label="ExtensionTargets"> </ImportGroup> -</Project> +</Project> \ No newline at end of file