From e572c5776d75d40a875ca1611b7b74fd5ee20de0 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 7 Jan 2021 18:07:56 +0100 Subject: [PATCH] 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 --- plugins/libimhex/include/helpers/utils.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/libimhex/include/helpers/utils.hpp b/plugins/libimhex/include/helpers/utils.hpp index 23a7608e6..3d5855145 100644 --- a/plugins/libimhex/include/helpers/utils.hpp +++ b/plugins/libimhex/include/helpers/utils.hpp @@ -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 : public std::true_type { }; + template<> + struct std::is_integral : public std::true_type { }; + template<> + struct std::is_signed : public std::true_type { }; #endif -template<> -struct std::is_integral : public std::true_type { }; -template<> -struct std::is_integral : public std::true_type { }; -template<> -struct std::is_signed : public std::true_type { }; - #if defined(_LIBCPP_VERSION) && _LIBCPP_VERSION <= 12000 #if __has_include() // Make sure we break when derived_from is implemented in libc++. Then we can fix a compatibility version above