Commit bdc8dad0 authored by Ghislain MARY's avatar Ghislain MARY Committed by Sylvain Berfini

Fix build with Visual Studio 2015.

parent a0624161
......@@ -157,7 +157,7 @@ static void presence_activity_delete(LinphonePresenceActivity *activity) {
static time_t parse_timestamp(const char *timestamp) {
struct tm ret;
time_t seconds;
#ifdef LINPHONE_WINDOWS_UNIVERSAL
#if defined(LINPHONE_WINDOWS_UNIVERSAL) || defined(LINPHONE_MSC_VER_GREATER_19)
long adjust_timezone;
#else
time_t adjust_timezone;
......@@ -174,7 +174,7 @@ static time_t parse_timestamp(const char *timestamp) {
ms_error("mktime() failed: %s", strerror(errno));
return (time_t)-1;
}
#ifdef LINPHONE_WINDOWS_UNIVERSAL
#if defined(LINPHONE_WINDOWS_UNIVERSAL) || defined(LINPHONE_MSC_VER_GREATER_19)
_get_timezone(&adjust_timezone);
#else
adjust_timezone = timezone;
......
......@@ -111,6 +111,11 @@ extern "C" {
#endif
#endif
#endif
#ifdef _MSC_VER
#if (_MSC_VER >= 1900)
#define LINPHONE_MSC_VER_GREATER_19
#endif
#endif
struct _LinphoneCallParams{
belle_sip_object_t base;
......
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