mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-12-04 02:38:05 -05:00
Boost 1.87 removed io_service and io_context::reset(), and 1.88 moved the classic Boost.Process API under boost/process/v1/ and dropped deadline_timer from boost/asio.hpp. Use io_context, restart() and steady_timer, and include Boost.Process only through the new slic3r/Utils/BoostProcessCompat.hpp, which picks the v1 headers on 1.88+. The bundled Boost 1.84 build is unchanged.
24 lines
592 B
C++
24 lines
592 B
C++
#ifndef slic3r_Utils_BoostProcessCompat_hpp_
|
|
#define slic3r_Utils_BoostProcessCompat_hpp_
|
|
|
|
#include <boost/version.hpp>
|
|
|
|
// Since Boost 1.88 the classic boost/process headers are only available
|
|
// under boost/process/v1/, select those there and the originals otherwise.
|
|
#if BOOST_VERSION >= 108800
|
|
#define BOOST_PROCESS_VERSION 1
|
|
#include <boost/process/v1.hpp>
|
|
#else
|
|
#include <boost/process.hpp>
|
|
#endif
|
|
|
|
#ifdef _WIN32
|
|
#if BOOST_VERSION >= 108800
|
|
#include <boost/process/v1/windows.hpp>
|
|
#else
|
|
#include <boost/process/windows.hpp>
|
|
#endif
|
|
#endif
|
|
|
|
#endif // slic3r_Utils_BoostProcessCompat_hpp_
|