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/02-cplusplus-no-register.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 gfx/cairo/02-cplusplus-no-register.patch (limited to 'gfx/cairo/02-cplusplus-no-register.patch') diff --git a/gfx/cairo/02-cplusplus-no-register.patch b/gfx/cairo/02-cplusplus-no-register.patch new file mode 100644 index 0000000000..30de2a2dc6 --- /dev/null +++ b/gfx/cairo/02-cplusplus-no-register.patch @@ -0,0 +1,15 @@ +diff --git a/gfx/cairo/cairo/src/cairoint.h b/gfx/cairo/cairo/src/cairoint.h +--- a/gfx/cairo/cairo/src/cairoint.h ++++ b/gfx/cairo/cairo/src/cairoint.h +@@ -190,7 +190,11 @@ static inline int cairo_const + #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) + return __builtin_popcount (mask); + #else ++#ifdef __cplusplus ++ int y; ++#else + register int y; ++#endif + + y = (mask >> 1) &033333333333; + y = mask - y - ((y >>1) & 033333333333); -- cgit v1.2.3