forked from mirrors/linphone-iphone
Fix build with Visual Studio 2015.
This commit is contained in:
parent
a06241619e
commit
bdc8dad0f0
2 changed files with 7 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue