From 36d22d82aa202bb199967e9512281e9a53db42c9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 21:33:14 +0200 Subject: Adding upstream version 115.7.0esr. Signed-off-by: Daniel Baumann --- gfx/cairo/pixman-clangcl.patch | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 gfx/cairo/pixman-clangcl.patch (limited to 'gfx/cairo/pixman-clangcl.patch') diff --git a/gfx/cairo/pixman-clangcl.patch b/gfx/cairo/pixman-clangcl.patch new file mode 100644 index 0000000000..efcbf75dc7 --- /dev/null +++ b/gfx/cairo/pixman-clangcl.patch @@ -0,0 +1,31 @@ +https://gitlab.freedesktop.org/pixman/pixman/-/issues/41 + +diff --git a/gfx/cairo/libpixman/src/pixman-mmx.c b/gfx/cairo/libpixman/src/pixman-mmx.c +--- a/gfx/cairo/libpixman/src/pixman-mmx.c ++++ b/gfx/cairo/libpixman/src/pixman-mmx.c +@@ -132,23 +132,23 @@ extern __inline __m64 __attribute__((__g + /* If __m64 is defined as a struct or union, then define M64_MEMBER to be + * the name of the member used to access the data. + * If __m64 requires using mm_cvt* intrinsics functions to convert between + * uint64_t and __m64 values, then define USE_CVT_INTRINSICS. + * If __m64 and uint64_t values can just be cast to each other directly, + * then define USE_M64_CASTS. + * If __m64 is a double datatype, then define USE_M64_DOUBLE. + */ +-#ifdef _MSC_VER ++#if defined(_MSC_VER) && !defined(__clang__) + # define M64_MEMBER m64_u64 + #elif defined(__ICC) + # define USE_CVT_INTRINSICS + #elif defined(USE_LOONGSON_MMI) + # define USE_M64_DOUBLE +-#elif defined(__GNUC__) ++#elif defined(__GNUC__) || defined(__clang__) + # define USE_M64_CASTS + #elif defined(__SUNPRO_C) + # if (__SUNPRO_C >= 0x5120) && !defined(__NOVECTORSIZE__) + /* Solaris Studio 12.3 (Sun C 5.12) introduces __attribute__(__vector_size__) + * support, and defaults to using it to define __m64, unless __NOVECTORSIZE__ + * is defined. If it is used, then the mm_cvt* intrinsics must be used. + */ + # define USE_CVT_INTRINSICS -- cgit v1.2.3