Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
3687892e
提交
3687892e
authored
12月 21, 2013
作者:
Jeff Lenk
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-6010 VS2013 build changes
上级
726981c5
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
34 行增加
和
3 行删除
+34
-3
apr_atomic.c
libs/apr/atomic/win32/apr_atomic.c
+18
-0
esl_event.c
libs/esl/src/esl_event.c
+1
-1
iLBC_decode.c
libs/ilbc/src/iLBC_decode.c
+2
-0
float_cast.h
libs/libsndfile/src/float_cast.h
+2
-0
sdp_parse.c
libs/sofia-sip/libsofia-sip-ua/sdp/sdp_parse.c
+3
-1
strtoull.c
libs/sofia-sip/libsofia-sip-ua/su/strtoull.c
+6
-1
su_taglist.c
libs/sofia-sip/libsofia-sip-ua/su/su_taglist.c
+2
-0
没有找到文件。
libs/apr/atomic/win32/apr_atomic.c
浏览文件 @
3687892e
...
...
@@ -27,6 +27,7 @@ APR_DECLARE(apr_status_t) apr_atomic_init(apr_pool_t *p)
* Remapping function pointer type to accept apr_uint32_t's type-safely
* as the arguments for as our apr_atomic_foo32 Functions
*/
#if (_MSC_VER < 1800)
typedef
WINBASEAPI
apr_uint32_t
(
WINAPI
*
apr_atomic_win32_ptr_fn
)
(
apr_uint32_t
volatile
*
);
typedef
WINBASEAPI
apr_uint32_t
(
WINAPI
*
apr_atomic_win32_ptr_val_fn
)
...
...
@@ -38,11 +39,14 @@ typedef WINBASEAPI apr_uint32_t (WINAPI * apr_atomic_win32_ptr_val_val_fn)
typedef
WINBASEAPI
void
*
(
WINAPI
*
apr_atomic_win32_ptr_ptr_ptr_fn
)
(
volatile
void
**
,
void
*
,
const
void
*
);
#endif
APR_DECLARE
(
apr_uint32_t
)
apr_atomic_add32
(
volatile
apr_uint32_t
*
mem
,
apr_uint32_t
val
)
{
#if (defined(_M_IA64) || defined(_M_AMD64))
return
InterlockedExchangeAdd
(
mem
,
val
);
#elif (_MSC_VER >= 1800)
return
InterlockedExchangeAdd
(
mem
,
val
);
#else
return
((
apr_atomic_win32_ptr_val_fn
)
InterlockedExchangeAdd
)(
mem
,
val
);
#endif
...
...
@@ -55,6 +59,8 @@ APR_DECLARE(void) apr_atomic_sub32(volatile apr_uint32_t *mem, apr_uint32_t val)
{
#if (defined(_M_IA64) || defined(_M_AMD64))
InterlockedExchangeAdd
(
mem
,
-
val
);
#elif (_MSC_VER >= 1800)
InterlockedExchangeAdd
(
mem
,
-
val
);
#else
((
apr_atomic_win32_ptr_val_fn
)
InterlockedExchangeAdd
)(
mem
,
-
val
);
#endif
...
...
@@ -65,6 +71,8 @@ APR_DECLARE(apr_uint32_t) apr_atomic_inc32(volatile apr_uint32_t *mem)
/* we return old value, win32 returns new value :( */
#if (defined(_M_IA64) || defined(_M_AMD64)) && !defined(RC_INVOKED)
return
InterlockedIncrement
(
mem
)
-
1
;
#elif (_MSC_VER >= 1800)
return
InterlockedIncrement
(
mem
)
-
1
;
#else
return
((
apr_atomic_win32_ptr_fn
)
InterlockedIncrement
)(
mem
)
-
1
;
#endif
...
...
@@ -74,6 +82,8 @@ APR_DECLARE(int) apr_atomic_dec32(volatile apr_uint32_t *mem)
{
#if (defined(_M_IA64) || defined(_M_AMD64)) && !defined(RC_INVOKED)
return
InterlockedDecrement
(
mem
);
#elif (_MSC_VER >= 1800)
return
InterlockedDecrement
(
mem
);
#else
return
((
apr_atomic_win32_ptr_fn
)
InterlockedDecrement
)(
mem
);
#endif
...
...
@@ -83,6 +93,8 @@ APR_DECLARE(void) apr_atomic_set32(volatile apr_uint32_t *mem, apr_uint32_t val)
{
#if (defined(_M_IA64) || defined(_M_AMD64)) && !defined(RC_INVOKED)
InterlockedExchange
(
mem
,
val
);
#elif (_MSC_VER >= 1800)
InterlockedExchange
(
mem
,
val
);
#else
((
apr_atomic_win32_ptr_val_fn
)
InterlockedExchange
)(
mem
,
val
);
#endif
...
...
@@ -98,6 +110,8 @@ APR_DECLARE(apr_uint32_t) apr_atomic_cas32(volatile apr_uint32_t *mem, apr_uint3
{
#if (defined(_M_IA64) || defined(_M_AMD64)) && !defined(RC_INVOKED)
return
InterlockedCompareExchange
(
mem
,
with
,
cmp
);
#elif (_MSC_VER >= 1800)
return
InterlockedCompareExchange
(
mem
,
with
,
cmp
);
#else
return
((
apr_atomic_win32_ptr_val_val_fn
)
InterlockedCompareExchange
)(
mem
,
with
,
cmp
);
#endif
...
...
@@ -107,6 +121,8 @@ APR_DECLARE(void *) apr_atomic_casptr(volatile void **mem, void *with, const voi
{
#if (defined(_M_IA64) || defined(_M_AMD64)) && !defined(RC_INVOKED)
return
InterlockedCompareExchangePointer
(
mem
,
with
,
cmp
);
#elif (_MSC_VER >= 1800)
return
InterlockedCompareExchangePointer
(
mem
,
with
,
cmp
);
#else
/* Too many VC6 users have stale win32 API files, stub this */
return
((
apr_atomic_win32_ptr_ptr_ptr_fn
)
InterlockedCompareExchange
)(
mem
,
with
,
cmp
);
...
...
@@ -117,6 +133,8 @@ APR_DECLARE(apr_uint32_t) apr_atomic_xchg32(volatile apr_uint32_t *mem, apr_uint
{
#if (defined(_M_IA64) || defined(_M_AMD64)) && !defined(RC_INVOKED)
return
InterlockedExchange
(
mem
,
val
);
#elif (_MSC_VER >= 1800)
return
InterlockedExchange
(
mem
,
val
);
#else
return
((
apr_atomic_win32_ptr_val_fn
)
InterlockedExchange
)(
mem
,
val
);
#endif
...
...
libs/esl/src/esl_event.c
浏览文件 @
3687892e
...
...
@@ -306,7 +306,7 @@ ESL_DECLARE(esl_status_t) esl_event_del_header_val(esl_event_t *event, const cha
esl_assert
(
x
<
1000000
);
hash
=
esl_ci_hashfunc_default
(
header_name
,
&
hlen
);
if
((
!
hp
->
hash
||
hash
==
hp
->
hash
)
&&
(
hp
->
name
&&
!
strcasecmp
(
header_name
,
hp
->
name
))
&&
(
esl_strlen_zero
(
val
)
||
!
strcmp
(
hp
->
value
,
val
)))
{
if
((
!
hp
->
hash
||
hash
==
hp
->
hash
)
&&
(
hp
->
name
&&
!
strcasecmp
(
header_name
,
hp
->
name
))
&&
(
esl_strlen_zero
(
val
)
||
(
hp
->
value
&&
!
strcmp
(
hp
->
value
,
val
)
)))
{
if
(
lp
)
{
lp
->
next
=
hp
->
next
;
}
else
{
...
...
libs/ilbc/src/iLBC_decode.c
浏览文件 @
3687892e
...
...
@@ -40,6 +40,7 @@
#include "hpOutput.h"
#include "syntFilter.h"
#if (defined(WIN32) || defined(_WIN32)) && (_MSC_VER < 1800)
#if (defined(WIN32) || defined(_WIN32)) && !defined(_WIN64)
__inline
long
int
rint
(
double
dbl
)
{
...
...
@@ -63,6 +64,7 @@
#endif
}
#endif
#endif
/*----------------------------------------------------------------*
* Initiation of decoder instance.
...
...
libs/libsndfile/src/float_cast.h
浏览文件 @
3687892e
...
...
@@ -158,6 +158,7 @@
}
#elif defined(_WIN64)
#if (_MSC_VER < 1800)
__inline
long
int
lrint
(
double
x
)
{
return
(
long
int
)
(
x
);
...
...
@@ -166,6 +167,7 @@
{
return
(
long
int
)
(
x
);
}
#endif
#elif (defined (__MWERKS__) && defined (macintosh))
/* This MacOS 9 solution was provided by Stephane Letz */
...
...
libs/sofia-sip/libsofia-sip-ua/sdp/sdp_parse.c
浏览文件 @
3687892e
...
...
@@ -1803,7 +1803,9 @@ static int parse_ul(sdp_parser_t *p, char **r,
}
#if !HAVE_STRTOULL
unsigned
longlong
strtoull
(
char
const
*
string
,
char
**
return_end
,
int
base
);
#if !((defined(WIN32) || defined(_WIN32)) && (_MSC_VER >= 1800))
unsigned
long
long
strtoull
(
char
const
*
string
,
char
**
return_end
,
int
base
);
#endif
#endif
/*
...
...
libs/sofia-sip/libsofia-sip-ua/su/strtoull.c
浏览文件 @
3687892e
...
...
@@ -73,7 +73,10 @@ static char cvtIn[] = {
20
,
21
,
22
,
23
,
24
,
25
,
26
,
27
,
28
,
29
,
30
,
31
,
32
,
33
,
34
,
35
};
#if !((defined(WIN32) || defined(_WIN32)) && (_MSC_VER >= 1800))
/**Convert an ASCII string into an unsigned long long integer.
*
* @param[in] string String of ASCII digits, possibly preceded by white
...
...
@@ -284,3 +287,5 @@ strtoull(const char *string, char **endPtr, int base)
return
(
unsigned
longlong
)
-
1
;
}
#endif
libs/sofia-sip/libsofia-sip-ua/su/su_taglist.c
浏览文件 @
3687892e
...
...
@@ -60,8 +60,10 @@
#include <sofia-sip/su_string.h>
#ifndef HAVE_STRTOULL
#if !((defined(WIN32) || defined(_WIN32)) && (_MSC_VER >= 1800))
unsigned
longlong
strtoull
(
const
char
*
,
char
**
,
int
);
#endif
#endif
/**@defgroup su_tag Tag Item Lists
*
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论