]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10246 [Core] Fix VPX codecs for windows build
authorAndrey Volk <andywolk@gmail.com>
Tue, 18 Apr 2017 16:42:01 +0000 (19:42 +0300)
committerAndrey Volk <andywolk@gmail.com>
Thu, 20 Apr 2017 21:08:37 +0000 (00:08 +0300)
src/switch_vpx.c
w32/Library/FreeSwitchCore.2015.vcxproj

index 78bf2245bee166e8950bfdb5428918fd5ecd7b3d..907f10805ba499f54b2ba8d4eebde8eb29841192 100644 (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);
 
index db5286a4105cc9081f316181c51a51211d10d41a..34f3818c69d7078aa6aef7ad21335bcbce363b29 100644 (file)
@@ -467,6 +467,7 @@ if not exist "$(OutDir)htdocs" xcopy "$(SolutionDir)htdocs\*.*" "$(OutDir)htdocs
     <ClCompile Include="..\..\src\switch_time.c" />\r
     <ClCompile Include="..\..\src\switch_utils.c" />\r
     <ClCompile Include="..\..\src\switch_version.c" />\r
+    <ClCompile Include="..\..\src\switch_vpx.c" />\r
     <ClCompile Include="..\..\src\switch_jitterbuffer.c" />\r
     <ClCompile Include="..\..\src\switch_xml.c" />\r
     <ClCompile Include="..\..\src\switch_xml_config.c" />\r
@@ -797,6 +798,7 @@ if not exist "$(OutDir)htdocs" xcopy "$(SolutionDir)htdocs\*.*" "$(OutDir)htdocs
     <ClInclude Include="..\..\src\include\switch_types.h" />\r
     <ClInclude Include="..\..\src\include\switch_utils.h" />\r
     <ClInclude Include="..\..\src\include\switch_version.h" />\r
+    <ClInclude Include="..\..\src\include\switch_vpx.h" />\r
     <ClInclude Include="..\..\src\include\switch_xml.h" />\r
     <ClInclude Include="..\..\src\include\switch_xml_config.h" />\r
   </ItemGroup>\r