From 3b08f6f9fd44f135ee833e467d55d215d679867b Mon Sep 17 00:00:00 2001 From: here-mikelley <48072435+here-mikelley@users.noreply.github.com> Date: Thu, 7 May 2020 22:30:58 -0700 Subject: [PATCH] [libsquish] add missing SQUISH_EXPORT (#11124) --- ports/libsquish/CONTROL | 2 +- ports/libsquish/fix-export-symbols.patch | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ports/libsquish/CONTROL b/ports/libsquish/CONTROL index 91b89650b1bbd7..24a0e8730f0b99 100644 --- a/ports/libsquish/CONTROL +++ b/ports/libsquish/CONTROL @@ -1,4 +1,4 @@ Source: libsquish -Version: 1.15-2 +Version: 1.15-3 Homepage: https://sourceforge.net/projects/libsquish Description: Open source DXT compression library. diff --git a/ports/libsquish/fix-export-symbols.patch b/ports/libsquish/fix-export-symbols.patch index febf2eb51425e4..a777eea234cda9 100644 --- a/ports/libsquish/fix-export-symbols.patch +++ b/ports/libsquish/fix-export-symbols.patch @@ -44,6 +44,13 @@ index 14c9bb5..aaffbb2 100644 + //! All squish API functions live in this namespace. namespace squish { + +@@ -115,5 +117,5 @@ + */ +-void CompressMasked( u8 const* rgba, int mask, void* block, int flags, float* metric = 0 ); ++SQUISH_EXPORT void CompressMasked( u8 const* rgba, int mask, void* block, int flags, float* metric = 0 ); + + // ----------------------------------------------------------------------------- @@ -176,7 +178,7 @@ inline void Compress( u8 const* rgba, void* block, int flags, float* metric = 0 however, DXT1 will be used by default if none is specified. All other flags