diff --git a/Include/httpClient/pal.h b/Include/httpClient/pal.h index cb092f20..28e0d5ab 100644 --- a/Include/httpClient/pal.h +++ b/Include/httpClient/pal.h @@ -18,7 +18,7 @@ #include -#if _WIN32 +#if defined(_WIN32) #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN diff --git a/Source/Common/utils.h b/Source/Common/utils.h index 7dcc7d06..6d994211 100644 --- a/Source/Common/utils.h +++ b/Source/Common/utils.h @@ -183,7 +183,7 @@ class hc_task : public std::enable_shared_from_this static inline int str_icmp(const http_internal_string& left, const http_internal_string& right) { -#if _WIN32 +#if defined(_WIN32) return _stricmp(left.c_str(), right.c_str()); #else return strcasecmp(left.c_str(), right.c_str());