From 459160d1844e69828045d63ffcac65b8c67fe19e Mon Sep 17 00:00:00 2001 From: Beman Date: Mon, 6 Jan 2014 16:52:15 -0500 Subject: [PATCH] Move BOOST_SYSTEM_SOURCE definition to src/error_code.cpp so that automatic library variant selection is enabled. --- include/boost/system/detail/error_code.ipp | 4 ---- src/error_code.cpp | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/system/detail/error_code.ipp b/include/boost/system/detail/error_code.ipp index be51fbb..6187919 100644 --- a/include/boost/system/detail/error_code.ipp +++ b/include/boost/system/detail/error_code.ipp @@ -11,10 +11,6 @@ #include -// define BOOST_SYSTEM_SOURCE so that knows -// the library is being built (possibly exporting rather than importing code) -#define BOOST_SYSTEM_SOURCE - #include #include #include diff --git a/src/error_code.cpp b/src/error_code.cpp index a9a8686..aa628ab 100644 --- a/src/error_code.cpp +++ b/src/error_code.cpp @@ -9,6 +9,10 @@ //----------------------------------------------------------------------------// +// define BOOST_SYSTEM_SOURCE so that knows +// the library is being built (possibly exporting rather than importing code) +#define BOOST_SYSTEM_SOURCE + #include #ifndef BOOST_ERROR_CODE_HEADER_ONLY