summaryrefslogtreecommitdiffstats
path: root/gfx/cairo/02-cplusplus-no-register.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /gfx/cairo/02-cplusplus-no-register.patch
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gfx/cairo/02-cplusplus-no-register.patch')
-rw-r--r--gfx/cairo/02-cplusplus-no-register.patch15
1 files changed, 15 insertions, 0 deletions
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);