From 549749cd444fe432b306c44feddc0f0cba7a2a74 Mon Sep 17 00:00:00 2001 From: Bradley Sepos Date: Mon, 9 Nov 2020 19:26:43 -0500 Subject: contrib: Add freetype and fribidi patches for mingw-w64. --- contrib/freetype/P00-mingw-lib.patch | 15 +++++++++++++++ contrib/fribidi/P00-mingw-lib.patch | 15 +++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 contrib/freetype/P00-mingw-lib.patch create mode 100644 contrib/fribidi/P00-mingw-lib.patch (limited to 'contrib') diff --git a/contrib/freetype/P00-mingw-lib.patch b/contrib/freetype/P00-mingw-lib.patch new file mode 100644 index 000000000..2666c8c7d --- /dev/null +++ b/contrib/freetype/P00-mingw-lib.patch @@ -0,0 +1,15 @@ +diff -ur freetype-2.10.4.orig/include/freetype/config/public-macros.h freetype-2.10.4/include/freetype/config/public-macros.h +--- freetype-2.10.4.orig/include/freetype/config/public-macros.h 2020-08-27 02:17:20.000000000 -0400 ++++ freetype-2.10.4/include/freetype/config/public-macros.h 2020-11-09 19:51:44.000000000 -0500 +@@ -66,9 +66,9 @@ + #if defined( _WIN32 ) + + #if defined( FT2_BUILD_LIBRARY ) && defined( DLL_EXPORT ) +-#define FT_PUBLIC_FUNCTION_ATTRIBUTE __declspec( dllexport ) ++#define FT_PUBLIC_FUNCTION_ATTRIBUTE + #elif defined( DLL_IMPORT ) +-#define FT_PUBLIC_FUNCTION_ATTRIBUTE __declspec( dllimport ) ++#define FT_PUBLIC_FUNCTION_ATTRIBUTE + #endif + + /* gcc, clang */ diff --git a/contrib/fribidi/P00-mingw-lib.patch b/contrib/fribidi/P00-mingw-lib.patch new file mode 100644 index 000000000..715d35dcb --- /dev/null +++ b/contrib/fribidi/P00-mingw-lib.patch @@ -0,0 +1,15 @@ +diff -ur fribidi-1.0.10.orig/lib/fribidi-common.h fribidi-1.0.10/lib/fribidi-common.h +--- fribidi-1.0.10.orig/lib/fribidi-common.h 2020-07-05 15:22:23.000000000 -0400 ++++ fribidi-1.0.10/lib/fribidi-common.h 2020-11-09 19:43:30.000000000 -0500 +@@ -45,9 +45,9 @@ + #ifndef FRIBIDI_LIB_STATIC + # ifdef _WIN32 + # ifdef FRIBIDI_BUILD +-# define FRIBIDI_ENTRY __declspec(dllexport) ++# define FRIBIDI_ENTRY + # else +-# define FRIBIDI_ENTRY __declspec(dllimport) ++# define FRIBIDI_ENTRY + # endif + # elif (defined(__SUNPRO_C) || defined(__SUNPRO_CC)) + # define FRIBIDI_ENTRY __global -- cgit v1.2.3