mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Fix compilation with boost 1.86
This commit is contained in:
@@ -15,11 +15,19 @@
|
||||
#include "../lib/CThreadHelper.h"
|
||||
#include "../server/CVCMIServer.h"
|
||||
|
||||
#ifndef VCMI_MOBILE
|
||||
#ifdef ENABLE_SERVER_PROCESS
|
||||
|
||||
#if BOOST_VERSION >= 108600
|
||||
// TODO: upgrade code to use v2 API instead of deprecated v1
|
||||
#include <boost/process/v1/child.hpp>
|
||||
#include <boost/process/v1/io.hpp>
|
||||
#else
|
||||
#include <boost/process/child.hpp>
|
||||
#include <boost/process/io.hpp>
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#include <future>
|
||||
|
||||
ServerThreadRunner::ServerThreadRunner() = default;
|
||||
@@ -66,7 +74,7 @@ int ServerThreadRunner::exitCode()
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifndef VCMI_MOBILE
|
||||
#ifdef ENABLE_SERVER_PROCESS
|
||||
|
||||
ServerProcessRunner::ServerProcessRunner() = default;
|
||||
ServerProcessRunner::~ServerProcessRunner() = default;
|
||||
|
||||
Reference in New Issue
Block a user