diff --git a/src/error_code.cpp b/src/error_code.cpp index d451940..b86a38c 100644 --- a/src/error_code.cpp +++ b/src/error_code.cpp @@ -10,13 +10,11 @@ //----------------------------------------------------------------------------// -#include +// define BOOST_SYSTEM_SOURCE so that knows +// the library is being built (possibly exporting rather than importing code) +#define BOOST_SYSTEM_SOURCE -#if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_SYSTEM_DYN_LINK) -# define BOOST_SYSTEM_DECL BOOST_SYMBOL_EXPORT -#else -# define BOOST_SYSTEM_DECL -#endif +#include namespace boost {