Move BOOST_SYSTEM_SOURCE definition to src/error_code.cpp so that automatic library variant selection is enabled.

This commit is contained in:
Beman
2014-01-06 16:52:15 -05:00
parent 42ee65f745
commit 459160d184
2 changed files with 4 additions and 4 deletions

View File

@ -11,10 +11,6 @@
#include <boost/config/warning_disable.hpp>
// define BOOST_SYSTEM_SOURCE so that <boost/system/config.hpp> knows
// the library is being built (possibly exporting rather than importing code)
#define BOOST_SYSTEM_SOURCE
#include <boost/system/config.hpp>
#include <boost/system/error_code.hpp>
#include <boost/cerrno.hpp>

View File

@ -9,6 +9,10 @@
//----------------------------------------------------------------------------//
// define BOOST_SYSTEM_SOURCE so that <boost/system/config.hpp> knows
// the library is being built (possibly exporting rather than importing code)
#define BOOST_SYSTEM_SOURCE
#include <boost/system/error_code.hpp>
#ifndef BOOST_ERROR_CODE_HEADER_ONLY