Skip to content

Define http_listener if CPPREST_FORCE_HTTP_LISTENER_ASIO is defined#608

Merged
ras0219-msft merged 1 commit intomicrosoft:masterfrom
garethsb:force_http_listener_asio
Nov 23, 2017
Merged

Define http_listener if CPPREST_FORCE_HTTP_LISTENER_ASIO is defined#608
ras0219-msft merged 1 commit intomicrosoft:masterfrom
garethsb:force_http_listener_asio

Conversation

@garethsb
Copy link
Copy Markdown
Contributor

When cpprestsdk is built with CPPREST_HTTP_LISTENER_IMPL = asio on Windows, for testing purposes (I'm trying to debug an issue encountered on Linux), the following complete source code fails to compile:

#include "cpprest/http_listener.h"
using web::http::experimental::listener::http_listener;

This is a one-line fix. (It's possible that the various preprocessor conditional expressions in this header should all be made more consistent.)

@ras0219-msft ras0219-msft merged commit 5ee4621 into microsoft:master Nov 23, 2017
@ras0219-msft
Copy link
Copy Markdown
Contributor

Looks simple, thanks for the PR!

I agree, the preprocessor macros are probably in need of a simplification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants