diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-11-05 08:12:56 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-11-05 10:09:24 +0100 |
commit | d7f64593db4afdf2a7e77ca9147f6495e69912fd (patch) | |
tree | e8488c24fc7e62a43948a90c7debccc6a2842227 /unotools/source | |
parent | 7190e6f114eccd921e6cb6beef793b053cf50856 (diff) |
The std::auto_ptr workarounds should only be necessary for Boost < 1.67.0
...see the commit message of f8b10b76bc3000eab3269de4472d6c28bd308059 "The
std::auto_ptr workarounds should no longer be necessary" for details. (The
removed settings in 52a26b146542526dc4f6bb193ffb4fd95e4f79fd "fix
unotools/source/i18n/resmgr.cxx build with PCH on Mac" might still theoretically
be necessary for macOS and Windows builds against the baseline Boost 1.66.0, but
it is unlikely that anybody does such builds against anything other than our
Boost 1.76.0 exteranl/boost, anyway.)
Change-Id: I7a5cdc72e76c695b220353b02368623383dcd8a4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124725
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'unotools/source')
-rw-r--r-- | unotools/source/i18n/resmgr.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/unotools/source/i18n/resmgr.cxx b/unotools/source/i18n/resmgr.cxx index 62991153f01c..a10b4710ad8d 100644 --- a/unotools/source/i18n/resmgr.cxx +++ b/unotools/source/i18n/resmgr.cxx @@ -17,6 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <boost/version.hpp> +#if BOOST_VERSION < 106700 // Needed when #include <boost/locale.hpp> below includes Boost 1.65.1 // workdir/UnpackedTarball/boost/boost/locale/format.hpp using "std::auto_ptr<data> d;", but must // come very early here in case <memory> is already (indirectly) included earlier: @@ -26,6 +28,7 @@ #elif defined _MSC_VER #define _HAS_AUTO_PTR_ETC 1 #endif +#endif #include <sal/config.h> |