diff options
author | martin <martin@pkgsrc.org> | 2021-06-21 14:21:28 +0000 |
---|---|---|
committer | martin <martin@pkgsrc.org> | 2021-06-21 14:21:28 +0000 |
commit | befc08cd96cbe6fda6f0e5f744b9ba49b376241c (patch) | |
tree | 75637c30a221cde56ea767af77522b0c87eb1d64 /www/firefox52/patches | |
parent | 3a09c392c6b0fe4d2435f68004f528bd166674dc (diff) | |
download | pkgsrc-befc08cd96cbe6fda6f0e5f744b9ba49b376241c.tar.gz |
PR 56265: add an explicit template instantiation for the "external" variant
used in a different compilation unit, so this builds with newer gcc
versions.
Diffstat (limited to 'www/firefox52/patches')
-rw-r--r-- | www/firefox52/patches/patch-gfx_thebes_gfxFont.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/www/firefox52/patches/patch-gfx_thebes_gfxFont.cpp b/www/firefox52/patches/patch-gfx_thebes_gfxFont.cpp new file mode 100644 index 00000000000..b29f82669a7 --- /dev/null +++ b/www/firefox52/patches/patch-gfx_thebes_gfxFont.cpp @@ -0,0 +1,28 @@ +$NetBSD: patch-gfx_thebes_gfxFont.cpp,v 1.1 2021/06/21 14:21:28 martin Exp $ + +Add an explicit template instantiation to make it work +with newer gcc (older gcc did not create specialized inline +clones). + +--- gfx/thebes/gfxFont.cpp.orig 2017-04-11 04:13:08.000000000 +0200 ++++ gfx/thebes/gfxFont.cpp 2021-06-21 15:18:43.789260654 +0200 +@@ -2614,6 +2614,18 @@ gfxFont::GetShapedWord(DrawTarget *aDraw + return sw; + } + ++template ++gfxShapedWord* ++gfxFont::GetShapedWord(DrawTarget *aDrawTarget, ++ const uint8_t *aText, ++ uint32_t aLength, ++ uint32_t aHash, ++ Script aRunScript, ++ bool aVertical, ++ int32_t aAppUnitsPerDevUnit, ++ uint32_t aFlags, ++ gfxTextPerfMetrics *aTextPerf GFX_MAYBE_UNUSED); ++ + bool + gfxFont::CacheHashEntry::KeyEquals(const KeyTypePointer aKey) const + { + |