Skip to content

Commit 7c9189e

Browse files
committed
Fix android build after refactor.
1 parent aff4a1a commit 7c9189e

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Release/src/http/client/x509_cert_utilities.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ bool verify_cert_chain_platform_specific(boost::asio::ssl::verify_context &verif
106106
}
107107

108108
#if defined(ANDROID) || defined(__ANDROID__)
109+
using namespace crossplat;
110+
109111
/// <summary>
110112
/// Helper function to check return value and see if any exceptions
111113
/// occurred when calling a JNI function.

Release/src/http/common/http_msg.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -225,12 +225,6 @@ void http_headers::set_content_length(utility::size64_t length)
225225

226226
namespace details {
227227

228-
#ifdef _WIN32
229-
# define CRLF _XPLATSTR("\r\n")
230-
#else
231-
# define CRLF std::string("\r\n")
232-
#endif
233-
234228
utility::string_t flatten_http_headers(const http_headers &headers)
235229
{
236230
utility::string_t flattened_headers;
@@ -244,6 +238,7 @@ utility::string_t flatten_http_headers(const http_headers &headers)
244238
return flattened_headers;
245239
}
246240

241+
#if defined(_WIN32)
247242
void parse_headers_string(_Inout_z_ utf16char *headersStr, http_headers &headers)
248243
{
249244
utf16char *context = nullptr;
@@ -263,6 +258,7 @@ void parse_headers_string(_Inout_z_ utf16char *headersStr, http_headers &headers
263258
line = wcstok_s(nullptr, CRLF, &context);
264259
}
265260
}
261+
#endif
266262

267263
}
268264

0 commit comments

Comments
 (0)