mirror of https://github.com/WerWolv/ImHex.git
Only define is_integral and is_signed for 128 bit types on non-apple
Clang on macos already defines is_integral and is_signed for 128 bit types
This commit is contained in:
parent
5d1e53f469
commit
e572c5776d
|
@ -18,19 +18,19 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
#define off64_t off_t
|
#define off64_t off_t
|
||||||
#define fopen64 fopen
|
#define fopen64 fopen
|
||||||
#define fseeko64 fseek
|
#define fseeko64 fseek
|
||||||
#define ftello64 ftell
|
#define ftello64 ftell
|
||||||
|
#else
|
||||||
|
template<>
|
||||||
|
struct std::is_integral<u128> : public std::true_type { };
|
||||||
|
template<>
|
||||||
|
struct std::is_integral<s128> : public std::true_type { };
|
||||||
|
template<>
|
||||||
|
struct std::is_signed<s128> : public std::true_type { };
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
template<>
|
|
||||||
struct std::is_integral<u128> : public std::true_type { };
|
|
||||||
template<>
|
|
||||||
struct std::is_integral<s128> : public std::true_type { };
|
|
||||||
template<>
|
|
||||||
struct std::is_signed<s128> : public std::true_type { };
|
|
||||||
|
|
||||||
#if defined(_LIBCPP_VERSION) && _LIBCPP_VERSION <= 12000
|
#if defined(_LIBCPP_VERSION) && _LIBCPP_VERSION <= 12000
|
||||||
#if __has_include(<concepts>)
|
#if __has_include(<concepts>)
|
||||||
// Make sure we break when derived_from is implemented in libc++. Then we can fix a compatibility version above
|
// Make sure we break when derived_from is implemented in libc++. Then we can fix a compatibility version above
|
||||||
|
|
Loading…
Reference in New Issue