mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-29 09:09:21 +00:00
fix windows compilation with Visual Studio under windows.
This commit is contained in:
parent
1d96392aa4
commit
725a8b65c9
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue