mingw-freetype/freetype-2.10.0-internal-outline.patch

75 lines
2.6 KiB
Diff
Raw Normal View History

2020-10-23 16:15:49 +00:00
diff -rupN --no-dereference freetype-2.10.4/include/freetype/ftoutln.h freetype-2.10.4-new/include/freetype/ftoutln.h
--- freetype-2.10.4/include/freetype/ftoutln.h 2020-08-31 09:26:12.000000000 +0200
+++ freetype-2.10.4-new/include/freetype/ftoutln.h 2020-10-23 18:08:03.623465356 +0200
@@ -164,6 +164,15 @@ FT_BEGIN_HEADER
2019-08-29 22:43:02 +00:00
FT_Int numContours,
FT_Outline *anoutline );
+ /*
+ * Kept downstream for ABI compatibility only.
+ * It just throws error now. Remove once soname has been bumped.
+ */
+ FT_EXPORT( FT_Error )
+ FT_Outline_New_Internal( FT_Memory memory,
+ FT_UInt numPoints,
+ FT_Int numContours,
+ FT_Outline *anoutline );
/**************************************************************************
*
2020-10-23 16:15:49 +00:00
@@ -191,6 +200,13 @@ FT_BEGIN_HEADER
2019-08-29 22:43:02 +00:00
FT_Outline_Done( FT_Library library,
FT_Outline* outline );
+ /*
+ * Kept downstream for ABI compatibility only.
+ * It just throws error now. Remove once soname has been bumped.
+ */
+ FT_EXPORT( FT_Error )
+ FT_Outline_Done_Internal( FT_Memory memory,
+ FT_Outline* outline );
/**************************************************************************
*
2020-10-23 16:15:49 +00:00
diff -rupN --no-dereference freetype-2.10.4/src/base/ftoutln.c freetype-2.10.4-new/src/base/ftoutln.c
--- freetype-2.10.4/src/base/ftoutln.c 2020-08-27 08:17:20.000000000 +0200
+++ freetype-2.10.4-new/src/base/ftoutln.c 2020-10-23 18:08:03.623465356 +0200
@@ -289,6 +289,19 @@
2019-08-29 22:43:02 +00:00
/* documentation is in ftoutln.h */
+ /*
+ * Kept downstream for ABI compatibility only.
+ * It just throws error now. Remove once soname has been bumped.
+ */
+ FT_EXPORT_DEF( FT_Error )
+ FT_Outline_New_Internal( FT_Memory memory,
+ FT_UInt numPoints,
+ FT_Int numContours,
+ FT_Outline *anoutline )
+ {
+ return FT_THROW( Unimplemented_Feature );
+ }
+
FT_EXPORT_DEF( FT_Error )
FT_Outline_New( FT_Library library,
FT_UInt numPoints,
2020-10-23 16:15:49 +00:00
@@ -421,6 +434,17 @@
2019-08-29 22:43:02 +00:00
/* documentation is in ftoutln.h */
+ /*
+ * Kept downstream for ABI compatibility only.
+ * It just throws error now. Remove once soname has been bumped.
+ */
+ FT_EXPORT_DEF( FT_Error )
+ FT_Outline_Done_Internal( FT_Memory memory,
+ FT_Outline* outline )
+ {
+ return FT_THROW( Unimplemented_Feature );
+ }
+
FT_EXPORT_DEF( FT_Error )
FT_Outline_Done( FT_Library library,
FT_Outline* outline )