]> 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)
committerMike Jerris <mike@jerris.com>
Thu, 1 Jun 2017 19:57:14 +0000 (15:57 -0400)
src/switch_vpx.c
w32/Library/FreeSwitchCore.2015.vcxproj

index 1b7414a7299a6a4e363e7e56238c5ea5a9317c79..ce571c2fdeccb68ebd689916e8130e59cd32ae26 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 7493ea8ba22c93e4d6df9d6f3ca452bc1a4f464a..cbc3d993cdeb0a5c4a5f5c100ef4b56846e38f4e 100644 (file)
@@ -457,6 +457,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
@@ -785,6 +786,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