1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 03:09:51 +03:00
aports/community/openimageio/0001-fix-compile-error.patch
2025-03-02 12:20:00 +00:00

25 lines
1.2 KiB
Diff

From 658a1b17e587754360af64b2ac270dfdadf018b7 Mon Sep 17 00:00:00 2001
From: Leon Marz <main@lmarz.org>
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<uint32_t> { static const TypeDesc::BASETYPE valu
template<> struct BaseTypeFromC<int32_t> { static const TypeDesc::BASETYPE value = TypeDesc::INT; };
template<> struct BaseTypeFromC<uint64_t> { static const TypeDesc::BASETYPE value = TypeDesc::UINT64; };
template<> struct BaseTypeFromC<int64_t> { 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<unsigned long long, uint64_t>);
--
2.48.1