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:
WerWolv 2021-01-07 18:07:56 +01:00
parent 5d1e53f469
commit e572c5776d
1 changed files with 8 additions and 8 deletions

View File

@ -18,19 +18,19 @@
#endif
#ifdef __APPLE__
#define off64_t off_t
#define off64_t off_t
#define fopen64 fopen
#define fseeko64 fseek
#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
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 __has_include(<concepts>)
// Make sure we break when derived_from is implemented in libc++. Then we can fix a compatibility version above