From f33c68cda8811453f7ea6875b8098efdfa053f44 Mon Sep 17 00:00:00 2001 From: Andrey Volk Date: Tue, 18 Apr 2017 19:42:01 +0300 Subject: [PATCH] FS-10246 [Core] Fix VPX codecs for windows build --- src/switch_vpx.c | 4 ++++ w32/Library/FreeSwitchCore.2015.vcxproj | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/switch_vpx.c b/src/switch_vpx.c index 78bf2245be..907f10805b 100644 --- a/src/switch_vpx.c +++ b/src/switch_vpx.c @@ -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); diff --git a/w32/Library/FreeSwitchCore.2015.vcxproj b/w32/Library/FreeSwitchCore.2015.vcxproj index db5286a410..34f3818c69 100644 --- a/w32/Library/FreeSwitchCore.2015.vcxproj +++ b/w32/Library/FreeSwitchCore.2015.vcxproj @@ -467,6 +467,7 @@ if not exist "$(OutDir)htdocs" xcopy "$(SolutionDir)htdocs\*.*" "$(OutDir)htdocs + @@ -797,6 +798,7 @@ if not exist "$(OutDir)htdocs" xcopy "$(SolutionDir)htdocs\*.*" "$(OutDir)htdocs +