include/vcl/BitmapTools.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7454d3adf09cbc841e3681f9e32be57bdfb518c7
Author:     Michael Weghorn <m.wegh...@posteo.de>
AuthorDate: Fri Mar 15 07:46:15 2024 +0100
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Fri Mar 15 10:03:35 2024 +0100

    Make vcl::bitmap::get_unpremultiply_table VCL_DLLPUBLIC again
    
    This fixes my GCC 13.2.0 --enable-gtk4 build on Debian
    testing, which started failing after
    
        commit acd40306b3737d50cf24462b2d3e451092543e64
        Date:   Thu Mar 14 12:22:13 2024 +0200
    
            reduce symbol visibility in vcl
    
    like this:
    
        
/home/michi/development/git/libreoffice-WORKTREE/vcl/unx/gtk4/../gtk3/salnativewidgets-gtk.cxx:2195:
 error: undefined reference to 'vcl::bitmap::get_unpremultiply_table()'
        collect2: error: ld returned 1 exit status
        make[1]: *** 
[/home/michi/development/git/libreoffice-WORKTREE/vcl/Library_vclplug_gtk4.mk:20:
 
/home/michi/development/git/libreoffice-WORKTREE/instdir/program/libvclplug_gtk4lo.so]
 Error 1
        make[1]: *** Waiting for unfinished jobs....
        make: *** [Makefile:290: build] Error 2
    
    Change-Id: I0921801f6ad0f20f5250ca15a2749d7da044fcd8
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164856
    Tested-by: Jenkins
    Reviewed-by: Michael Weghorn <m.wegh...@posteo.de>

diff --git a/include/vcl/BitmapTools.hxx b/include/vcl/BitmapTools.hxx
index 0fa68905b139..d321d2be79a3 100644
--- a/include/vcl/BitmapTools.hxx
+++ b/include/vcl/BitmapTools.hxx
@@ -32,7 +32,7 @@ namespace vcl::bitmap {
 typedef std::array<std::array<sal_uInt8, 256>, 256> lookup_table;
 
 lookup_table const & get_premultiply_table();
-lookup_table const & get_unpremultiply_table();
+VCL_DLLPUBLIC lookup_table const & get_unpremultiply_table();
 #endif
 
 sal_uInt8 unpremultiply(sal_uInt8 c, sal_uInt8 a);

Reply via email to