Added shortened curl include path to support nuget package rmt_curl

This commit is contained in:
Kiryl Mikhneev
2017-08-31 15:58:38 +03:00
committed by Howard Hinnant
parent 4cb893c780
commit bba9aeafab

5
tz.cpp
View File

@@ -142,8 +142,13 @@
#if HAS_REMOTE_API #if HAS_REMOTE_API
// Note curl includes windows.h so we must include curl AFTER definitions of things // Note curl includes windows.h so we must include curl AFTER definitions of things
// that effect windows.h such as NOMINMAX. // that effect windows.h such as NOMINMAX.
#if defined(_MSC_BUILD) && defined(SHORTENED_CURL_INCLUDE)
// For rmt_curl nuget package
# include <curl.h>
#else
# include <curl/curl.h> # include <curl/curl.h>
#endif #endif
#endif
#ifdef _WIN32 #ifdef _WIN32
static CONSTDATA char folder_delimiter = '\\'; static CONSTDATA char folder_delimiter = '\\';