2
0
mirror of https://github.com/boostorg/log.git synced 2026-01-31 20:22:16 +00:00

Include config.hpp before checking BOOST_LOG_WITHOUT_SYSLOG.

Boost.Log's config.hpp may define BOOST_LOG_WITHOUT_SYSLOG if no native
syslog API or Boost.ASIO is available, so we need to include the header
before checking the macro.

Closes https://github.com/boostorg/log/pull/123.
This commit is contained in:
Andrey Semashev
2020-08-01 21:59:33 +03:00
parent 027c334063
commit e7d4fd2d13

View File

@@ -13,9 +13,10 @@
* at http://www.boost.org/doc/libs/release/libs/log/doc/html/index.html.
*/
#include <boost/log/detail/config.hpp>
#ifndef BOOST_LOG_WITHOUT_SYSLOG
#include <boost/log/detail/config.hpp>
#include <ctime>
#include <algorithm>
#include <stdexcept>