summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorBradley Sepos <[email protected]>2020-11-09 19:26:43 -0500
committerDamiano Galassi <[email protected]>2020-11-17 19:49:55 +0100
commit549749cd444fe432b306c44feddc0f0cba7a2a74 (patch)
tree52afee8d066f6298e587d5c33cbd74b2f4c51a21 /contrib
parente993534614efae59105b168ff2f7a0c8d1ecb55a (diff)
contrib: Add freetype and fribidi patches for mingw-w64.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/freetype/P00-mingw-lib.patch15
-rw-r--r--contrib/fribidi/P00-mingw-lib.patch15
2 files changed, 30 insertions, 0 deletions
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