mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-09-10 12:02:53 +02:00
Remove direct dependency on Boost.Core in libretro builds
This commit is contained in:
parent
082bd25be5
commit
3b564efd79
2 changed files with 4 additions and 6 deletions
|
@ -30,7 +30,6 @@
|
|||
#include <unordered_map>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
#include <boost/core/enable_if.hpp>
|
||||
#include <boost/type_traits/is_detected.hpp>
|
||||
#include <boost/container_hash/hash.hpp>
|
||||
#include <boost/asio/coroutine.hpp>
|
||||
|
@ -138,10 +137,10 @@ namespace mkxp_sandbox {
|
|||
// Otherwise, it's equal to 0.
|
||||
template <typename T, typename Dummy = void> struct declared_slots_size;
|
||||
template <typename T> using slots_declaration = typename T::slots;
|
||||
template <typename T> struct declared_slots_size<T, typename boost::enable_if<boost::is_detected<slots_declaration, T>>::type> {
|
||||
template <typename T> struct declared_slots_size<T, typename std::enable_if<boost::is_detected<slots_declaration, T>::value>::type> {
|
||||
static constexpr wasm_size_t value = slots_size<typename T::slots>::value;
|
||||
};
|
||||
template <typename T> struct declared_slots_size<T, typename boost::disable_if<boost::is_detected<slots_declaration, T>>::type> {
|
||||
template <typename T> struct declared_slots_size<T, typename std::enable_if<!boost::is_detected<slots_declaration, T>::value>::type> {
|
||||
static constexpr wasm_size_t value = 0;
|
||||
};
|
||||
|
||||
|
@ -292,11 +291,11 @@ namespace mkxp_sandbox {
|
|||
return bind.fibers[key];
|
||||
}
|
||||
|
||||
template <typename U> static typename boost::enable_if<std::is_constructible<U, struct binding_base &>, U *>::type construct_frame(struct binding_base &bind) {
|
||||
template <typename U> static typename std::enable_if<std::is_constructible<U, struct binding_base &>::value, U *>::type construct_frame(struct binding_base &bind) {
|
||||
return new U(bind);
|
||||
}
|
||||
|
||||
template <typename U> static typename boost::disable_if<std::is_constructible<U, struct binding_base &>, U *>::type construct_frame(struct binding_base &bind) {
|
||||
template <typename U> static typename std::enable_if<!std::is_constructible<U, struct binding_base &>::value, U *>::type construct_frame(struct binding_base &bind) {
|
||||
return new U;
|
||||
}
|
||||
|
||||
|
|
|
@ -31,7 +31,6 @@ if is_libretro
|
|||
|
||||
global_dependencies += [
|
||||
subproject('boost_asio').get_variable('boost_asio'),
|
||||
subproject('boost_core').get_variable('boost_core'),
|
||||
subproject('boost_container_hash').get_variable('boost_container_hash'),
|
||||
subproject('boost_optional').get_variable('boost_optional'),
|
||||
subproject('boost_type_traits').get_variable('boost_type_traits'),
|
||||
|
|
Loading…
Add table
Reference in a new issue