diff --git a/tz.cpp b/tz.cpp index f5bf98e..c68edb2 100644 --- a/tz.cpp +++ b/tz.cpp @@ -142,7 +142,7 @@ #if HAS_REMOTE_API // Note curl includes windows.h so we must include curl AFTER definitions of things // that effect windows.h such as NOMINMAX. -#if defined(_MSC_BUILD) && defined(SHORTENED_CURL_INCLUDE) +#if defined(_MSC_VER) && defined(SHORTENED_CURL_INCLUDE) // For rmt_curl nuget package # include #else diff --git a/tz.h b/tz.h index 2476cc4..3008580 100644 --- a/tz.h +++ b/tz.h @@ -412,6 +412,7 @@ public: zoned_time(TimeZonePtr z, const sys_time& st); +#if !defined(_MSC_VER) || (_MSC_VER > 1911) template >::value >::type> +#endif zoned_time(TimeZonePtr z, const local_time& tp); +#if !defined(_MSC_VER) || (_MSC_VER > 1911) template >::value >::type> +#endif zoned_time(TimeZonePtr z, const local_time& tp, choose c); zoned_time(TimeZonePtr z, const zoned_time& zt); @@ -1408,7 +1412,9 @@ zoned_time::zoned_time(TimeZonePtr z, const sys_time +#if !defined(_MSC_VER) || (_MSC_VER > 1911) template +#endif inline zoned_time::zoned_time(TimeZonePtr z, const local_time& t) : zone_(std::move(z)) @@ -1416,7 +1422,9 @@ zoned_time::zoned_time(TimeZonePtr z, const local_time +#if !defined(_MSC_VER) || (_MSC_VER > 1911) template +#endif inline zoned_time::zoned_time(TimeZonePtr z, const local_time& t, choose c)