Skip to content

Commit 377677d

Browse files
authored
Merge pull request #612 from garethsb-sony/force_http_listener_asio
Define http_listener if CPPREST_FORCE_HTTP_LISTENER_ASIO is defined (part 2)
2 parents eba38b8 + 0f65858 commit 377677d

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Release/src/http/listener/http_listener.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
#include "stdafx.h"
1515

16-
#if !defined(_WIN32) || (_WIN32_WINNT >= _WIN32_WINNT_VISTA && !defined(__cplusplus_winrt))
16+
#if !defined(_WIN32) || (_WIN32_WINNT >= _WIN32_WINNT_VISTA && !defined(__cplusplus_winrt)) || defined(CPPREST_FORCE_HTTP_LISTENER_ASIO)
1717

1818
using namespace web::http::experimental;
1919

Release/src/http/listener/http_server_api.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#include "stdafx.h"
1313

14-
#if !defined(_WIN32) || (_WIN32_WINNT >= _WIN32_WINNT_VISTA && !defined(__cplusplus_winrt))
14+
#if !defined(_WIN32) || (_WIN32_WINNT >= _WIN32_WINNT_VISTA && !defined(__cplusplus_winrt)) || defined(CPPREST_FORCE_HTTP_LISTENER_ASIO)
1515
#include "http_server_impl.h"
1616

1717
using namespace web;

Release/tests/functional/http/listener/listener_construction_tests.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ TEST_FIXTURE(uri_address, listener_config_creation)
430430
}
431431
}
432432

433-
#if !defined(_WIN32) && !defined(__cplusplus_winrt)
433+
#if !defined(_WIN32) && !defined(__cplusplus_winrt) || defined(CPPREST_FORCE_HTTP_LISTENER_ASIO)
434434

435435
TEST_FIXTURE(uri_address, create_https_listener_get, "Ignore", "github 209")
436436
{
@@ -545,7 +545,6 @@ XzJTD4slrGSJrcpLt/g/Jqqdjg==
545545

546546
for (auto&& h : all_headers)
547547
{
548-
std::cout << "HEADER - " << h.first << ": " << h.second << std::endl;
549548
VERIFY_IS_TRUE(request.headers().has(h.first));
550549
VERIFY_ARE_EQUAL(h.second, request.headers().find(h.first)->second);
551550
}

Release/tests/functional/websockets/utilities/test_websocket_server.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@
1818
#include "test_websocket_server.h"
1919

2020
#ifdef _WIN32
21+
#pragma warning(disable : 4503) // generated too late for disable to be effective inside push/pop
2122
#pragma warning( push )
22-
#pragma warning(disable : 4100 4127 4996 4512 4701 4267 4067 4503 4005)
23+
#pragma warning(disable : 4100 4127 4996 4512 4701 4267 4067 4005)
2324
#define _WEBSOCKETPP_CPP11_STL_
2425
#define _WEBSOCKETPP_CONSTEXPR_TOKEN_
2526
#if _MSC_VER < 1900

0 commit comments

Comments
 (0)