Commit bb8d52be authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Fix build with Visual Studio 2015.

parent 4d5de406
......@@ -1672,7 +1672,7 @@ BELLESIP_EXPORT time_t belle_sip_header_date_get_time(belle_sip_header_date_t *o
char tmp2[16] ={0};
int i,j;
time_t seconds;
#ifdef BELLE_SIP_WINDOWS_UNIVERSAL
#if defined(BELLE_SIP_WINDOWS_UNIVERSAL) || defined(BELLE_SIP_MSC_VER_GREATER_19)
long adjust_timezone;
#else
time_t adjust_timezone;
......@@ -1706,7 +1706,7 @@ success:
adjust_timezone = 0;
#else
seconds = mktime(&ret);
#ifdef BELLE_SIP_WINDOWS_UNIVERSAL
#if defined(BELLE_SIP_WINDOWS_UNIVERSAL) || defined(BELLE_SIP_MSC_VER_GREATER_19)
_get_timezone(&adjust_timezone);
#else
adjust_timezone = timezone;
......
......@@ -45,6 +45,11 @@
#define BELLE_SIP_WINDOWS_UNIVERSAL 1
#endif
#endif
#ifdef _MSC_VER
#if (_MSC_VER >= 1900)
#define BELLE_SIP_MSC_VER_GREATER_19
#endif
#endif
#include <winsock2.h>
#include <ws2tcpip.h>
......
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