Skip to content

Commit

Permalink
Add updated invoke_result_t check for ndk 16
Browse files Browse the repository at this point in the history
Same as on the core
  • Loading branch information
edo9300 committed Sep 6, 2024
1 parent b15c233 commit 59896f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gframe/generic_duel.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef GENERIC_DUEL_H
#define GENERIC_DUEL_H

#include <functional>
#include <cstdint>
#include <set>
#include <type_traits>
Expand Down Expand Up @@ -47,12 +46,12 @@ class GenericDuel final : public DuelMode {
void RefreshExtra(uint8_t player, uint32_t flag = 0x381fff);
void RefreshLocation(uint8_t player, uint32_t flag, uint8_t location);
void RefreshSingle(uint8_t player, uint8_t location, uint8_t sequence, uint32_t flag = 0x3f81fff);

static void GenericTimer(evutil_socket_t fd, short events, void* arg);

void PseudoRefreshDeck(uint8_t player, uint32_t flag = 0x1181fff);
static ReplayStream replay_stream;

protected:
std::vector<CoreUtils::Packet> packets_cache;
class duelist {
Expand Down Expand Up @@ -95,7 +94,8 @@ class GenericDuel final : public DuelMode {
}
}

#if (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L
#if (!defined(_LIBCPP_VERSION) || _LIBCPP_VERSION >= 7000) && \
((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L)
template<typename T, typename... Arg>
using FunctionResult = std::invoke_result_t<T, Arg...>;
#else
Expand Down

0 comments on commit 59896f5

Please sign in to comment.