From 725a8b65c9086ffa03e52d403dbd6d505a6f84b8 Mon Sep 17 00:00:00 2001 From: Aymeric Moizard <jack@atosc.org> Date: Tue, 12 Jan 2010 14:11:55 +0100 Subject: [PATCH] fix windows compilation with Visual Studio under windows. --- linphone/mediastreamer2/src/msticker.c | 2 +- linphone/oRTP/src/port.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/linphone/mediastreamer2/src/msticker.c b/linphone/mediastreamer2/src/msticker.c index 6a21b7e7e3..6e52656d04 100644 --- a/linphone/mediastreamer2/src/msticker.c +++ b/linphone/mediastreamer2/src/msticker.c @@ -266,7 +266,6 @@ static void sleepMs(int ms){ static int set_high_prio(void){ int precision=2; int result=0; - struct sched_param param; #ifdef WIN32 MMRESULT mm; TIMECAPS ptc; @@ -289,6 +288,7 @@ static int set_high_prio(void){ ms_warning("SetThreadPriority() failed (%d)\n", GetLastError()); } #else + struct sched_param param; memset(¶m,0,sizeof(param)); #ifdef TARGET_OS_MAC int policy=SCHED_RR; diff --git a/linphone/oRTP/src/port.c b/linphone/oRTP/src/port.c index de14a38123..15a324091a 100644 --- a/linphone/oRTP/src/port.c +++ b/linphone/oRTP/src/port.c @@ -124,7 +124,7 @@ int close_socket(ortp_socket_t sock){ #endif } -#if defined (_WIN32_WCE) +#if defined (_WIN32_WCE) || defined(_MSC_VER) int ortp_file_exist(const char *pathname) { FILE* fd; if (pathname==NULL) return -1; -- GitLab