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