Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
2860355e
提交
2860355e
authored
1月 10, 2018
作者:
Andrey Volk
提交者:
Mike Jerris
4月 02, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-10876: [Build-System] Fix build in Visual Studio 2017 and Windows SDK 10.
上级
02be0e26
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
35 行增加
和
22 行删除
+35
-22
bnf.h
libs/sofia-sip/libsofia-sip-ua/bnf/sofia-sip/bnf.h
+5
-4
msg_mime.c
libs/sofia-sip/libsofia-sip-ua/msg/msg_mime.c
+9
-9
vsyasm.props
libs/win32/libx264/vsyasm.props
+1
-0
vsyasm.targets
libs/win32/libx264/vsyasm.targets
+4
-4
switch_apr.c
src/switch_apr.c
+10
-2
switch_estimators.c
src/switch_estimators.c
+1
-2
switch_rtp.c
src/switch_rtp.c
+0
-1
FreeSwitchCore.2015.vcxproj
w32/Library/FreeSwitchCore.2015.vcxproj
+5
-0
没有找到文件。
libs/sofia-sip/libsofia-sip-ua/bnf/sofia-sip/bnf.h
浏览文件 @
2860355e
...
@@ -52,15 +52,16 @@ SOFIA_BEGIN_DECLS
...
@@ -52,15 +52,16 @@ SOFIA_BEGIN_DECLS
/** Horizontal tab */
/** Horizontal tab */
#define HT "\t"
#define HT "\t"
/** Carriage return */
/** Carriage return */
#define CR "\r"
/* CR conflicts with Windows SDK 10, so it is now _CR */
#define _CR "\r"
/** Line feed */
/** Line feed */
#define LF "\n"
#define LF "\n"
/** Line-ending characters */
/** Line-ending characters */
#define CRLF CR LF
#define CRLF
_
CR LF
/** Whitespace */
/** Whitespace */
#define WS SP HT
#define WS SP HT
/** Linear whitespace */
/** Linear whitespace */
#define LWS SP HT CR LF
#define LWS SP HT
_
CR LF
/** Lower-case alphabetic characters */
/** Lower-case alphabetic characters */
#define LOALPHA "abcdefghijklmnopqrstuvwxyz"
#define LOALPHA "abcdefghijklmnopqrstuvwxyz"
/** Upper-case alphabetic characters */
/** Upper-case alphabetic characters */
...
@@ -160,7 +161,7 @@ enum {
...
@@ -160,7 +161,7 @@ enum {
SOFIAPUBVAR
unsigned
char
const
_bnf_table
[
256
];
SOFIAPUBVAR
unsigned
char
const
_bnf_table
[
256
];
/** Get number of characters before CRLF */
/** Get number of characters before CRLF */
#define span_non_crlf(s) strcspn(s, CR LF)
#define span_non_crlf(s) strcspn(s,
_
CR LF)
/** Get number of characters before whitespace */
/** Get number of characters before whitespace */
#define span_non_ws(s) strcspn(s, WS)
#define span_non_ws(s) strcspn(s, WS)
...
...
libs/sofia-sip/libsofia-sip-ua/msg/msg_mime.c
浏览文件 @
2860355e
...
@@ -272,7 +272,7 @@ msg_multipart_boundary(su_home_t *home, char const *b)
...
@@ -272,7 +272,7 @@ msg_multipart_boundary(su_home_t *home, char const *b)
if
(
!
b
||
!
(
boundary
=
su_alloc
(
home
,
2
+
2
+
strlen
(
b
)
+
2
+
1
)))
if
(
!
b
||
!
(
boundary
=
su_alloc
(
home
,
2
+
2
+
strlen
(
b
)
+
2
+
1
)))
return
NULL
;
return
NULL
;
strcpy
(
boundary
,
CR
LF
"--"
);
strcpy
(
boundary
,
_
CR
LF
"--"
);
if
(
b
[
0
]
==
'"'
)
/* " See http://bugzilla.gnome.org/show_bug.cgi?id=134216 */
if
(
b
[
0
]
==
'"'
)
/* " See http://bugzilla.gnome.org/show_bug.cgi?id=134216 */
...
@@ -281,7 +281,7 @@ msg_multipart_boundary(su_home_t *home, char const *b)
...
@@ -281,7 +281,7 @@ msg_multipart_boundary(su_home_t *home, char const *b)
strcpy
(
boundary
+
4
,
b
);
strcpy
(
boundary
+
4
,
b
);
strcat
(
boundary
+
4
,
CR
LF
);
strcat
(
boundary
+
4
,
_
CR
LF
);
return
boundary
;
return
boundary
;
}
}
...
@@ -321,9 +321,9 @@ msg_multipart_search_boundary(su_home_t *home, char const *p, size_t len)
...
@@ -321,9 +321,9 @@ msg_multipart_search_boundary(su_home_t *home, char const *p, size_t len)
if
(
m
>
2
&&
crlf
)
{
if
(
m
>
2
&&
crlf
)
{
boundary
=
su_alloc
(
home
,
2
+
m
+
2
+
1
);
boundary
=
su_alloc
(
home
,
2
+
m
+
2
+
1
);
if
(
boundary
)
{
if
(
boundary
)
{
memcpy
(
boundary
,
CR
LF
,
2
);
memcpy
(
boundary
,
_
CR
LF
,
2
);
memcpy
(
boundary
+
2
,
p
,
m
);
memcpy
(
boundary
+
2
,
p
,
m
);
strcpy
(
boundary
+
m
+
2
,
CR
LF
);
strcpy
(
boundary
+
m
+
2
,
_
CR
LF
);
}
}
return
boundary
;
return
boundary
;
}
}
...
@@ -342,9 +342,9 @@ msg_multipart_search_boundary(su_home_t *home, char const *p, size_t len)
...
@@ -342,9 +342,9 @@ msg_multipart_search_boundary(su_home_t *home, char const *p, size_t len)
if
(
m
>
2
&&
crlf
)
{
if
(
m
>
2
&&
crlf
)
{
boundary
=
su_alloc
(
home
,
2
+
m
+
2
+
1
);
boundary
=
su_alloc
(
home
,
2
+
m
+
2
+
1
);
if
(
boundary
)
{
if
(
boundary
)
{
memcpy
(
boundary
,
CR
LF
,
2
);
memcpy
(
boundary
,
_
CR
LF
,
2
);
memcpy
(
boundary
+
2
,
p
+
1
,
m
);
memcpy
(
boundary
+
2
,
p
+
1
,
m
);
strcpy
(
boundary
+
2
+
m
,
CR
LF
);
strcpy
(
boundary
+
2
+
m
,
_
CR
LF
);
}
}
return
boundary
;
return
boundary
;
}
}
...
@@ -589,7 +589,7 @@ int msg_multipart_complete(su_home_t *home,
...
@@ -589,7 +589,7 @@ int msg_multipart_complete(su_home_t *home,
b
=
mp
->
mp_data
;
b
=
mp
->
mp_data
;
m
=
mp
->
mp_len
;
m
=
mp
->
mp_len
;
if
(
strncmp
(
b
,
CR
LF
"--"
,
4
)
==
0
)
if
(
strncmp
(
b
,
_
CR
LF
"--"
,
4
)
==
0
)
b
+=
4
,
m
-=
4
;
b
+=
4
,
m
-=
4
;
else
if
(
strncmp
(
b
,
"--"
,
2
)
==
0
)
else
if
(
strncmp
(
b
,
"--"
,
2
)
==
0
)
b
+=
2
,
m
-=
2
;
b
+=
2
,
m
-=
2
;
...
@@ -638,7 +638,7 @@ int msg_multipart_complete(su_home_t *home,
...
@@ -638,7 +638,7 @@ int msg_multipart_complete(su_home_t *home,
if
(
mp
->
mp_next
==
NULL
)
{
if
(
mp
->
mp_next
==
NULL
)
{
if
(
!
mp
->
mp_close_delim
)
if
(
!
mp
->
mp_close_delim
)
mp
->
mp_close_delim
=
msg_payload_format
(
home
,
"%.*s--"
CR
LF
,
mp
->
mp_close_delim
=
msg_payload_format
(
home
,
"%.*s--"
_
CR
LF
,
(
int
)
m
,
boundary
);
(
int
)
m
,
boundary
);
if
(
!
mp
->
mp_close_delim
)
if
(
!
mp
->
mp_close_delim
)
return
-
1
;
return
-
1
;
...
@@ -658,7 +658,7 @@ int msg_multipart_complete(su_home_t *home,
...
@@ -658,7 +658,7 @@ int msg_multipart_complete(su_home_t *home,
mp
->
mp_common
->
h_len
=
mp
->
mp_len
;
mp
->
mp_common
->
h_len
=
mp
->
mp_len
;
if
(
!
mp
->
mp_separator
)
if
(
!
mp
->
mp_separator
)
if
(
!
(
mp
->
mp_separator
=
msg_separator_make
(
home
,
CR
LF
)))
if
(
!
(
mp
->
mp_separator
=
msg_separator_make
(
home
,
_
CR
LF
)))
return
-
1
;
return
-
1
;
if
(
mp
->
mp_multipart
)
{
if
(
mp
->
mp_multipart
)
{
...
...
libs/win32/libx264/vsyasm.props
浏览文件 @
2860355e
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
<YASM>
<YASM>
<Debug>
False
</Debug>
<Debug>
False
</Debug>
<ObjectFile>
$(IntDir)
</ObjectFile>
<ObjectFile>
$(IntDir)
</ObjectFile>
<ObjectFileName>
$(IntDir)\$(Filename).asm.obj
</ObjectFileName>
<PreProc>
0
</PreProc>
<PreProc>
0
</PreProc>
<Parser>
0
</Parser>
<Parser>
0
</Parser>
<CommandLineTemplate>
$(YasmPath)libs\vsyasm.exe -Xvc -f $(Platform) [AllOptions] [AdditionalOptions] [Inputs]
</CommandLineTemplate>
<CommandLineTemplate>
$(YasmPath)libs\vsyasm.exe -Xvc -f $(Platform) [AllOptions] [AdditionalOptions] [Inputs]
</CommandLineTemplate>
...
...
libs/win32/libx264/vsyasm.targets
浏览文件 @
2860355e
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
AfterTargets=
"$(YASMAfterTargets)"
AfterTargets=
"$(YASMAfterTargets)"
Condition=
"'@(YASM)' != ''"
Condition=
"'@(YASM)' != ''"
DependsOnTargets=
"$(YASMDependsOn);ComputeYASMOutput"
DependsOnTargets=
"$(YASMDependsOn);ComputeYASMOutput"
Outputs=
"@(YASM->'%(ObjectFile)')"
Outputs=
"@(YASM->'%(ObjectFile
Name
)')"
Inputs=
"@(YASM);%(YASM.AdditionalDependencies);$(MSBuildProjectFile)"
>
Inputs=
"@(YASM);%(YASM.AdditionalDependencies);$(MSBuildProjectFile)"
>
<ItemGroup
<ItemGroup
Condition=
"'@(SelectedFiles)' != ''"
>
Condition=
"'@(SelectedFiles)' != ''"
>
...
@@ -30,8 +30,8 @@
...
@@ -30,8 +30,8 @@
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
<YASM_tlog
<YASM_tlog
Include=
"%(YASM.ObjectFile)"
Include=
"%(YASM.ObjectFile
Name
)"
Condition=
"'%(YASM.ObjectFile)' != '' and '%(YASM.ExcludedFromBuild)' != 'true'"
>
Condition=
"'%(YASM.ObjectFile
Name
)' != '' and '%(YASM.ExcludedFromBuild)' != 'true'"
>
<Source>
@(YASM, '|')
</Source>
<Source>
@(YASM, '|')
</Source>
</YASM_tlog>
</YASM_tlog>
</ItemGroup>
</ItemGroup>
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
IncludePaths=
"%(YASM.IncludePaths)"
IncludePaths=
"%(YASM.IncludePaths)"
Defines=
"%(YASM.Defines)"
Defines=
"%(YASM.Defines)"
UnDefines=
"%(YASM.UnDefines)"
UnDefines=
"%(YASM.UnDefines)"
ObjectFile=
"%(YASM.ObjectFile)"
ObjectFile=
"%(YASM.ObjectFile
Name
)"
ListFile=
"%(YASM.ListFile)"
ListFile=
"%(YASM.ListFile)"
MapFile=
"%(YASM.MapFile)"
MapFile=
"%(YASM.MapFile)"
ErrorFile=
"%(YASM.ErrorFile)"
ErrorFile=
"%(YASM.ErrorFile)"
...
...
src/switch_apr.c
浏览文件 @
2860355e
...
@@ -59,6 +59,14 @@
...
@@ -59,6 +59,14 @@
#include <apr_fnmatch.h>
#include <apr_fnmatch.h>
#include <apr_tables.h>
#include <apr_tables.h>
#ifdef WIN32
#include "apr_arch_networkio.h"
/* Missing socket symbols */
#ifndef SOL_TCP
#define SOL_TCP IPPROTO_TCP
#endif
#endif
/* apr_vformatter_buff_t definition*/
/* apr_vformatter_buff_t definition*/
#include <apr_lib.h>
#include <apr_lib.h>
...
@@ -832,7 +840,7 @@ SWITCH_DECLARE(switch_status_t) switch_socket_opt_set(switch_socket_t *sock, int
...
@@ -832,7 +840,7 @@ SWITCH_DECLARE(switch_status_t) switch_socket_opt_set(switch_socket_t *sock, int
int
r
=
-
10
;
int
r
=
-
10
;
#if defined(TCP_KEEPIDLE)
#if defined(TCP_KEEPIDLE)
r
=
setsockopt
(
jsock
->
client_socket
,
SOL_TCP
,
TCP_KEEPIDLE
,
(
void
*
)
&
on
,
sizeof
(
on
));
r
=
setsockopt
(
sock
->
socketdes
,
SOL_TCP
,
TCP_KEEPIDLE
,
(
void
*
)
&
on
,
sizeof
(
on
));
#endif
#endif
if
(
r
==
-
10
)
{
if
(
r
==
-
10
)
{
return
SWITCH_STATUS_NOTIMPL
;
return
SWITCH_STATUS_NOTIMPL
;
...
@@ -846,7 +854,7 @@ SWITCH_DECLARE(switch_status_t) switch_socket_opt_set(switch_socket_t *sock, int
...
@@ -846,7 +854,7 @@ SWITCH_DECLARE(switch_status_t) switch_socket_opt_set(switch_socket_t *sock, int
int
r
=
-
10
;
int
r
=
-
10
;
#if defined(TCP_KEEPINTVL)
#if defined(TCP_KEEPINTVL)
r
=
setsockopt
(
jsock
->
client_socket
,
SOL_TCP
,
TCP_KEEPINTVL
,
(
void
*
)
&
on
,
sizeof
(
on
));
r
=
setsockopt
(
sock
->
socketdes
,
SOL_TCP
,
TCP_KEEPINTVL
,
(
void
*
)
&
on
,
sizeof
(
on
));
#endif
#endif
if
(
r
==
-
10
)
{
if
(
r
==
-
10
)
{
...
...
src/switch_estimators.c
浏览文件 @
2860355e
...
@@ -29,9 +29,8 @@
...
@@ -29,9 +29,8 @@
*
*
*/
*/
#include <switch_estimators.h>
#include <switch.h>
#include <switch.h>
#ifndef _MSC_VER
#ifndef _MSC_VER
#include <switch_private.h>
#include <switch_private.h>
#endif
#endif
...
...
src/switch_rtp.c
浏览文件 @
2860355e
...
@@ -48,7 +48,6 @@
...
@@ -48,7 +48,6 @@
#include <srtp_priv.h>
#include <srtp_priv.h>
#include <switch_ssl.h>
#include <switch_ssl.h>
#include <switch_jitterbuffer.h>
#include <switch_jitterbuffer.h>
#include <switch_estimators.h>
//#define DEBUG_TS_ROLLOVER
//#define DEBUG_TS_ROLLOVER
//#define TS_ROLLOVER_START 4294951295
//#define TS_ROLLOVER_START 4294951295
...
...
w32/Library/FreeSwitchCore.2015.vcxproj
浏览文件 @
2860355e
...
@@ -107,6 +107,11 @@
...
@@ -107,6 +107,11 @@
<CodeAnalysisRuleSet>
AllRules.ruleset
</CodeAnalysisRuleSet>
<CodeAnalysisRuleSet>
AllRules.ruleset
</CodeAnalysisRuleSet>
<RunCodeAnalysis>
false
</RunCodeAnalysis>
<RunCodeAnalysis>
false
</RunCodeAnalysis>
</PropertyGroup>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<AdditionalIncludeDirectories>
..\..\libs\apr\include\arch\win32;%(AdditionalIncludeDirectories)
</AdditionalIncludeDirectories>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
>
<ItemDefinitionGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
>
<BuildLog
/>
<BuildLog
/>
<PreBuildEvent>
<PreBuildEvent>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论