Merge pull request #1254 in FS/freeswitch from ~ANDYWOLK/freeswitch:bugfix/FS-10246-fix-vpx-codecs-for-windows-build to master

* commit 'f33c68cda8811453f7ea6875b8098efdfa053f44':
  FS-10246 [Core] Fix VPX codecs for windows build
This commit is contained in:
Mike Jerris 2017-04-26 22:28:10 +00:00
commit a22b9ddcbb
2 changed files with 6 additions and 0 deletions

View File

@ -259,6 +259,10 @@ static inline int IS_VP8_KEY_FRAME(uint8_t *data)
#define IS_VP9_KEY_FRAME(byte) ((((byte) & 0x40) == 0) && ((byte) & 0x0A))
#define IS_VP9_START_PKT(byte) ((byte) & 0x08)
#ifdef WIN32
#undef SWITCH_MOD_DECLARE_DATA
#define SWITCH_MOD_DECLARE_DATA __declspec(dllexport)
#endif
SWITCH_MODULE_LOAD_FUNCTION(mod_vpx_load);
SWITCH_MODULE_DEFINITION(CORE_VPX_MODULE, mod_vpx_load, NULL, NULL);

View File

@ -467,6 +467,7 @@ if not exist "$(OutDir)htdocs" xcopy "$(SolutionDir)htdocs\*.*" "$(OutDir)htdocs
<ClCompile Include="..\..\src\switch_time.c" />
<ClCompile Include="..\..\src\switch_utils.c" />
<ClCompile Include="..\..\src\switch_version.c" />
<ClCompile Include="..\..\src\switch_vpx.c" />
<ClCompile Include="..\..\src\switch_jitterbuffer.c" />
<ClCompile Include="..\..\src\switch_xml.c" />
<ClCompile Include="..\..\src\switch_xml_config.c" />
@ -797,6 +798,7 @@ if not exist "$(OutDir)htdocs" xcopy "$(SolutionDir)htdocs\*.*" "$(OutDir)htdocs
<ClInclude Include="..\..\src\include\switch_types.h" />
<ClInclude Include="..\..\src\include\switch_utils.h" />
<ClInclude Include="..\..\src\include\switch_version.h" />
<ClInclude Include="..\..\src\include\switch_vpx.h" />
<ClInclude Include="..\..\src\include\switch_xml.h" />
<ClInclude Include="..\..\src\include\switch_xml_config.h" />
</ItemGroup>