diff options
author | jbeich <jbeich@FreeBSD.org> | 2016-10-13 22:05:42 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2016-10-13 22:05:42 +0800 |
commit | 162b8d07195c92fd018e0ea1a517b82317026a54 (patch) | |
tree | 9b2c40ec5c86a1cd41c5e7b44d8495fbbece21e2 /emulators | |
parent | 025329fc4c8a7a73310b057bfd6e203e4cf3d2cb (diff) | |
download | freebsd-ports-gnome-162b8d07195c92fd018e0ea1a517b82317026a54.tar.gz freebsd-ports-gnome-162b8d07195c92fd018e0ea1a517b82317026a54.tar.zst freebsd-ports-gnome-162b8d07195c92fd018e0ea1a517b82317026a54.zip |
emulators/citra: unbreak on < 10.2 after r423781
In file included from externals/dynarmic/src/frontend/disassembler/disassembler_arm.cpp:15:
In file included from externals/dynarmic/src/./frontend/decoder/arm.h:18:
In file included from externals/dynarmic/src/./frontend/decoder/decoder_detail.h:14:
externals/dynarmic/src/./common/mp.h:34:27: fatal error: no template named 'tuple_element_t' in namespace 'std'; did you mean 'tuple_element'?
using type = std::tuple_element_t<ParameterIndex, std::tuple<Args...>>;
~~~~~^~~~~~~~~~~~~~~
tuple_element
/usr/include/c++/v1/__tuple:44:62: note: 'tuple_element' declared here
template <size_t _Ip, class _Tp> class _LIBCPP_TYPE_VIS_ONLY tuple_element;
^
Reported by: pkg-fallout
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/citra/files/patch-externals_dynarmic_src_common_mp.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/emulators/citra/files/patch-externals_dynarmic_src_common_mp.h b/emulators/citra/files/patch-externals_dynarmic_src_common_mp.h new file mode 100644 index 000000000000..6e732890460e --- /dev/null +++ b/emulators/citra/files/patch-externals_dynarmic_src_common_mp.h @@ -0,0 +1,34 @@ +std::tuple_element_t appeared in FreeBSD 10.2 (libcxx r202673) but +USES=compiler cannot pull newer C++14-compatible libc++ version. + + In file included from externals/dynarmic/src/frontend/disassembler/disassembler_arm.cpp:15: + In file included from externals/dynarmic/src/./frontend/decoder/arm.h:18: + In file included from externals/dynarmic/src/./frontend/decoder/decoder_detail.h:14: + externals/dynarmic/src/./common/mp.h:34:27: fatal error: no template named 'tuple_element_t' in namespace 'std'; did you mean 'tuple_element'? + using type = std::tuple_element_t<ParameterIndex, std::tuple<Args...>>; + ~~~~~^~~~~~~~~~~~~~~ + tuple_element + /usr/include/c++/v1/__tuple:44:62: note: 'tuple_element' declared here + template <size_t _Ip, class _Tp> class _LIBCPP_TYPE_VIS_ONLY tuple_element; + ^ + +--- externals/dynarmic/src/common/mp.h.orig 2016-09-14 22:03:09 UTC ++++ externals/dynarmic/src/common/mp.h +@@ -9,6 +9,17 @@ + #include <cstddef> + #include <tuple> + ++#ifdef __FreeBSD__ ++#include <osreldate.h> ++# if defined(_LIBCPP_VERSION) && __FreeBSD_version < 1001508 ++// Copied from <tuple> ++namespace std { ++ template <size_t _Ip, class ..._Tp> ++ using tuple_element_t = typename tuple_element <_Ip, _Tp...>::type; ++} ++# endif ++#endif ++ + namespace Dynarmic { + namespace mp { + |