From cf2a9a7b42751e2d3a7353643f94c840a40f1b79 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Mon, 20 Jul 2015 12:28:14 +0200 Subject: [PATCH] Fix compilation error. --- coreapi/linphonecore.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index c8ca8e41a..2293e317c 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -5370,7 +5370,11 @@ void * linphone_core_get_native_preview_window_id(const LinphoneCore *lc){ * MacOS, Linux, Windows: if not set or zero the core will create its own window, unless the special id -1 is given. **/ void linphone_core_set_native_preview_window_id(LinphoneCore *lc, void *id){ - if (id == NULL || id==(unsigned long)-1){ + if ((id == NULL) +#ifndef _WIN32 + || ((unsigned int)id == (unsigned long)-1) +#endif + ) { unset_video_window_id(lc,TRUE,id); } lc->preview_window_id=id;