Skip to content

Commit 3e8dcf5

Browse files
committed
Fix UWP issues with min/max macros.
1 parent e8dda21 commit 3e8dcf5

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Release/include/cpprest/streams.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1714,6 +1714,7 @@ class type_parser<CharType,char> : public _type_parser_base<CharType>
17141714
template<class CharType>
17151715
class type_parser<CharType, std::enable_if_t<sizeof(CharType) == 1, std::basic_string<wchar_t>>> : public _type_parser_base<CharType>
17161716
{
1717+
typedef typename concurrency::streams::streambuf<CharType>::int_type int_type;
17171718
public:
17181719
static pplx::task<std::wstring> parse(streams::streambuf<CharType> buffer)
17191720
{

Release/src/http/client/http_client_winrt.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ using namespace std;
2828
using namespace Platform;
2929
using namespace Microsoft::WRL;
3030

31+
#undef min
32+
#undef max
33+
3134
namespace web
3235
{
3336
namespace http

0 commit comments

Comments
 (0)