File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 6
6
#ifdef CROW_ENABLE_SSL
7
7
#include < boost/asio/ssl.hpp>
8
8
#endif
9
- #if BOOST_VERSION >= 107000
10
- #define GET_IO_SERVICE (s ) ((boost::asio::io_context&)(s).get_executor().context())
11
- #else
12
- #define GET_IO_SERVICE (s ) ((s).get_io_service())
13
- #endif
14
9
#else
15
10
#ifndef ASIO_STANDALONE
16
11
#define ASIO_STANDALONE
20
15
#ifdef CROW_ENABLE_SSL
21
16
#include < asio/ssl.hpp>
22
17
#endif
23
- #if ASIO_VERSION >= 101300 // 1.13.0
18
+ #endif
19
+ #include " crow/settings.h"
20
+
21
+ #if (CROW_USE_BOOST && BOOST_VERSION >= 107000) || (ASIO_VERSION >= 101300)
24
22
#define GET_IO_SERVICE (s ) ((asio::io_context&)(s).get_executor().context())
25
23
#else
26
24
#define GET_IO_SERVICE (s ) ((s).get_io_service())
27
25
#endif
28
- #endif
29
- #include " crow/settings.h"
30
26
31
27
namespace crow
32
28
{
You can’t perform that action at this time.
0 commit comments