From 658a1b17e587754360af64b2ac270dfdadf018b7 Mon Sep 17 00:00:00 2001 From: Leon Marz Date: Sun, 2 Feb 2025 16:20:14 +0100 Subject: [PATCH] fix compile error --- src/include/OpenImageIO/typedesc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/OpenImageIO/typedesc.h b/src/include/OpenImageIO/typedesc.h index b6ac37c..779e320 100644 --- a/src/include/OpenImageIO/typedesc.h +++ b/src/include/OpenImageIO/typedesc.h @@ -401,7 +401,7 @@ template<> struct BaseTypeFromC { static const TypeDesc::BASETYPE valu template<> struct BaseTypeFromC { static const TypeDesc::BASETYPE value = TypeDesc::INT; }; template<> struct BaseTypeFromC { static const TypeDesc::BASETYPE value = TypeDesc::UINT64; }; template<> struct BaseTypeFromC { static const TypeDesc::BASETYPE value = TypeDesc::INT64; }; -#if defined(__GNUC__) && __WORDSIZE == 64 && !(defined(__APPLE__) && defined(__MACH__)) +#if defined(__GNUC__) && defined(__LP64__) // Some platforms consider int64_t and long long to be different types, even // though they are actually the same size. static_assert(!std::is_same_v); -- 2.48.1