Commit 1c3635e1 authored by Sylvain Berfini's avatar Sylvain Berfini

Fix wp8 build

parent ce931ad1
......@@ -205,6 +205,7 @@
<ClInclude Include="..\..\..\include\belle-sip\belle-sdp.h" />
<ClInclude Include="..\..\..\include\belle-sip\belle-sip.h" />
<ClInclude Include="..\..\..\include\belle-sip\dialog.h" />
<ClInclude Include="..\..\..\include\belle-sip\dict.h" />
<ClInclude Include="..\..\..\include\belle-sip\headers.h" />
<ClInclude Include="..\..\..\include\belle-sip\list.h" />
<ClInclude Include="..\..\..\include\belle-sip\listener.h" />
......@@ -237,6 +238,7 @@
<ClCompile Include="..\..\..\src\belle_sdpLexer.c" />
<ClCompile Include="..\..\..\src\belle_sdpParser.c" />
<ClCompile Include="..\..\..\src\belle_sdp_impl.c" />
<ClCompile Include="..\..\..\src\belle_sip_dict.c" />
<ClCompile Include="..\..\..\src\belle_sip_headers_impl.c" />
<ClCompile Include="..\..\..\src\belle_sip_loop.c" />
<ClCompile Include="..\..\..\src\belle_sip_messageLexer.c" />
......
......@@ -21,8 +21,13 @@
#ifndef WIN32
#include <sys/types.h>
#endif
#include <inttypes.h>
#else
typedef __int32 int32_t;
typedef unsigned __int32 uint32_t;
typedef __int64 int64_t;
typedef unsigned __int64 uint64_t;
#endif
#include "object.h"
......
......@@ -80,7 +80,11 @@ const char* belle_sip_dict_get_string(belle_sip_dict_t* obj, const char* key, co
void belle_sip_dict_set_int64(belle_sip_dict_t* obj, const char* key, int64_t value)
{
char tmp[30];
snprintf(tmp,sizeof(tmp),"%"PRId64"",value);
#if defined (_MSC_VER)
snprintf(tmp,sizeof(tmp),"%I64d",value);
#else
snprintf(tmp,sizeof(tmp),"%" PRId64"",value);
#endif
belle_sip_dict_set_string(obj,key,tmp);
}
......
......@@ -90,8 +90,7 @@ static int tunnel_polling_timer(belle_sip_tunnel_channel_t *chan) {
BELLE_SIP_DECLARE_NO_IMPLEMENTED_INTERFACES(belle_sip_tunnel_channel_t);
BELLE_SIP_INSTANCIATE_CUSTOM_VPTR(belle_sip_tunnel_channel_t)=
{
BELLE_SIP_INSTANCIATE_CUSTOM_VPTR_BEGIN(belle_sip_tunnel_channel_t)
{
{
BELLE_SIP_VPTR_INIT(belle_sip_tunnel_channel_t,belle_sip_channel_t,FALSE),
......@@ -106,7 +105,7 @@ BELLE_SIP_INSTANCIATE_CUSTOM_VPTR(belle_sip_tunnel_channel_t)=
tunnel_channel_recv,
tunnel_channel_close
}
};
BELLE_SIP_INSTANCIATE_CUSTOM_VPTR_END
belle_sip_channel_t * belle_sip_channel_new_tunnel(belle_sip_stack_t *stack, void *tunnelclient, const char *bindip, int localport, const char *dest, int port){
belle_sip_tunnel_channel_t *obj = belle_sip_object_new(belle_sip_tunnel_channel_t);
......
......@@ -32,7 +32,7 @@ static belle_sip_channel_t *tunnel_create_channel(belle_sip_listening_point_t *l
}
BELLE_SIP_DECLARE_NO_IMPLEMENTED_INTERFACES(belle_sip_tunnel_listening_point_t);
BELLE_SIP_INSTANCIATE_CUSTOM_VPTR(belle_sip_tunnel_listening_point_t)={
BELLE_SIP_INSTANCIATE_CUSTOM_VPTR_BEGIN(belle_sip_tunnel_listening_point_t)
{
{
BELLE_SIP_VPTR_INIT(belle_sip_tunnel_listening_point_t, belle_sip_listening_point_t,TRUE),
......@@ -43,7 +43,7 @@ BELLE_SIP_INSTANCIATE_CUSTOM_VPTR(belle_sip_tunnel_listening_point_t)={
"UDP",
tunnel_create_channel
}
};
BELLE_SIP_INSTANCIATE_CUSTOM_VPTR_END
static void belle_sip_tunnel_listening_point_init(belle_sip_tunnel_listening_point_t *lp, belle_sip_stack_t *s, void *tunnelclient) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment