2
0
mirror of https://github.com/boostorg/log.git synced 2026-02-18 02:02:14 +00:00

Make sure that Windows API version is consistent for all sources.

Include winapi/config.hpp as soon as possible; avoid including even
Boost.Config before it so that it doesn't set Windows API version
accidentally by including some third party header. In all source files,
include detail/config.hpp or detail/setup_config.hpp first thing.

Moved all WinAPI config macros to the Jamfile.v2 and removed
windows_version.hpp as it was no longer needed. Also enabled inclusion of
windows.h while compiling the library.

Removed auto-linking with psapi.lib and advapi32.lib as it was no longer
working after ecf3114. Added linking with advapi32.lib to Jamfile.v2.
This commit is contained in:
Andrey Semashev
2015-12-20 21:05:28 +03:00
parent c6f09d69c8
commit a31ec74e51
56 changed files with 64 additions and 90 deletions

View File

@@ -13,9 +13,9 @@
* at http://www.boost.org/doc/libs/release/libs/log/doc/html/index.html.
*/
#include <boost/log/detail/config.hpp>
#include <string>
#include <stdexcept>
#include <boost/log/detail/config.hpp>
#include <boost/log/exceptions.hpp>
#include <boost/log/detail/thread_specific.hpp>
@@ -23,7 +23,6 @@
#if defined(BOOST_THREAD_PLATFORM_WIN32)
#include "windows_version.hpp"
#include <windows.h>
#include <boost/log/detail/header.hpp>