Commit 33ebb44b authored by jehan's avatar jehan

fix build issue from wp8 build

parent d4437825
......@@ -104,7 +104,7 @@ test_numbers_LDADD=liblinphone.la $(liblinphone_la_LIBADD)
endif
AM_CPPFLAGS=\
-I$(top_srcdir)
-I$(top_srcdir) -I$(top_srcdir)/include
AM_CFLAGS=\
$(STRICT_OPTIONS) -DIN_LINPHONE \
......
......@@ -33,10 +33,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define LINPHONE_IPADDR_SIZE 64
#define LINPHONE_HOSTNAME_SIZE 128
#ifdef LIBLINPHONE_EXPORTS
#define LINPHONE_PUBLIC __declspec(dllexport)
#else
#define LINPHONE_PUBLIC __declspec(dllimport)
#ifndef LINPHONE_PUBLIC
#define LINPHONE_PUBLIC MS2_PUBLIC
#endif
#ifdef __cplusplus
......
......@@ -228,7 +228,7 @@ LpConfig * lp_config_new(const char *filename){
#endif
if ((stat(filename,&fileStat) == 0) && (S_ISREG(fileStat.st_mode))) {
/* make existing configuration files non-group/world-accessible */
if (_chmod(filename, _S_IREAD | _S_IWRITE) == -1) {
if (chmod(filename, S_IREAD | S_IWRITE) == -1) {
ms_warning("unable to correct permissions on "
"configuration file: %s", strerror(errno));
}
......
......@@ -112,7 +112,7 @@ int remove_lock_file()
char *int2str(int number)
{
char *numstr=ms_malloc(10);
_snprintf(numstr,10,"%i",number);
snprintf(numstr,10,"%i",number);
return numstr;
}
......
......@@ -488,7 +488,7 @@ int linphone_upnp_context_send_add_port_binding(UpnpContext *lupnp, UpnpPortBind
mapping.remote_port = port->external_port;
mapping.remote_host = "";
snprintf(description, 128, "%s %s at %s:%d",
LINPHONE_PACKAGE_NAME,
PACKAGE_NAME,
(port->protocol == UPNP_IGD_IP_PROTOCOL_TCP)? "TCP": "UDP",
port->local_addr, port->local_port);
mapping.description = description;
......
......@@ -29,10 +29,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "mediastreamer2/mscommon.h"
#include "ortp/ortp_srtp.h"
#ifdef LIBLINPHONE_EXPORTS
#define LINPHONE_PUBLIC __declspec(dllexport)
#else
#define LINPHONE_PUBLIC __declspec(dllimport)
#ifndef LINPHONE_PUBLIC
#define LINPHONE_PUBLIC MS2_PUBLIC
#endif
/*Dirty hack, keep in sync with mediastreamer2/include/mediastream.h */
......
......@@ -475,7 +475,6 @@ static void simple_call_transfer(void) {
LinphoneCoreManager* pauline = linphone_core_manager_new("./tester/pauline_rc");
LinphoneCoreManager* laure = linphone_core_manager_new("./tester/laure_rc");
LinphoneCall* pauline_called_by_marie;
LinphoneCall* marie_call_pauline;
char* laure_identity=linphone_address_as_string(laure->identity);
MSList* lcs=ms_list_append(NULL,marie->lc);
......
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