diff --git a/components/utility/freetype/origin.patch b/components/utility/freetype/origin.patch index eb38af21ba12e2e11894861afe28cbcc302c0b4d..136c4d3a92ed5e79a5da9b2a7ffc6c0ff75f8372 100644 --- a/components/utility/freetype/origin.patch +++ b/components/utility/freetype/origin.patch @@ -1,10 +1,7 @@ -diff --git a/freetype-2.4.0/include/freetype/config/ftmodule.h b/freetype-2.4.0_m/include/freetype/config/ftmodule.h -old mode 100644 -new mode 100755 -index 76d271a..c590dee ---- a/freetype-2.4.0/include/freetype/config/ftmodule.h -+++ b/freetype-2.4.0_m/include/freetype/config/ftmodule.h -@@ -14,7 +14,7 @@ FT_USE_MODULE( FT_Module_Class, autofit_module_class ) +diff --git b/freetype-2.4.0/include/freetype/config/ftmodule.h a/freetype-2.4.0/include/freetype/config/ftmodule.h +--- b/freetype-2.4.0/include/freetype/config/ftmodule.h 2010-07-13 04:07:16.000000000 +0800 ++++ a/freetype-2.4.0/include/freetype/config/ftmodule.h 2021-04-02 16:49:23.190749548 +0800 +@@ -14,7 +14,7 @@ FT_USE_MODULE( FT_Driver_ClassRec, tt_driver_class ) FT_USE_MODULE( FT_Driver_ClassRec, t1_driver_class ) FT_USE_MODULE( FT_Driver_ClassRec, cff_driver_class ) @@ -13,151 +10,62 @@ index 76d271a..c590dee FT_USE_MODULE( FT_Driver_ClassRec, pfr_driver_class ) FT_USE_MODULE( FT_Driver_ClassRec, t42_driver_class ) FT_USE_MODULE( FT_Driver_ClassRec, winfnt_driver_class ) -diff --git a/freetype-2.4.0/include/freetype/config/ftoption.h b/freetype-2.4.0_m/include/freetype/config/ftoption.h -index 2b46259..4266a5e 100644 ---- a/freetype-2.4.0/include/freetype/config/ftoption.h -+++ b/freetype-2.4.0_m/include/freetype/config/ftoption.h -@@ -185,7 +185,7 @@ FT_BEGIN_HEADER +diff --git b/freetype-2.4.0/include/freetype/config/ftoption.h a/freetype-2.4.0/include/freetype/config/ftoption.h +--- b/freetype-2.4.0/include/freetype/config/ftoption.h 2010-07-13 04:07:16.000000000 +0800 ++++ a/freetype-2.4.0/include/freetype/config/ftoption.h 2021-04-02 16:49:37.783587729 +0800 +@@ -185,7 +185,7 @@ /* Do not #undef this macro here since the build system might define */ /* it for certain configurations only. */ /* */ -/* #define FT_CONFIG_OPTION_SYSTEM_ZLIB */ +#define FT_CONFIG_OPTION_SYSTEM_ZLIB - - + + /*************************************************************************/ -diff --git a/freetype-2.4.0_m/objs/ftmodule.h b/freetype-2.4.0_m/objs/ftmodule.h -new file mode 100644 -index 0000000..b729977 ---- /dev/null -+++ b/freetype-2.4.0_m/objs/ftmodule.h -@@ -0,0 +1,20 @@ -+/* This is a generated file. */ -+FT_USE_MODULE( FT_Driver_ClassRec, tt_driver_class ) -+FT_USE_MODULE( FT_Driver_ClassRec, t1_driver_class ) -+FT_USE_MODULE( FT_Driver_ClassRec, cff_driver_class ) -+FT_USE_MODULE( FT_Driver_ClassRec, t1cid_driver_class ) -+FT_USE_MODULE( FT_Driver_ClassRec, pfr_driver_class ) -+FT_USE_MODULE( FT_Driver_ClassRec, t42_driver_class ) -+FT_USE_MODULE( FT_Driver_ClassRec, winfnt_driver_class ) -+FT_USE_MODULE( FT_Driver_ClassRec, pcf_driver_class ) -+FT_USE_MODULE( FT_Driver_ClassRec, bdf_driver_class ) -+FT_USE_MODULE( FT_Module_Class, sfnt_module_class ) -+FT_USE_MODULE( FT_Module_Class, autofit_module_class ) -+FT_USE_MODULE( FT_Module_Class, pshinter_module_class ) -+FT_USE_MODULE( FT_Renderer_Class, ft_raster1_renderer_class ) -+FT_USE_MODULE( FT_Renderer_Class, ft_smooth_renderer_class ) -+FT_USE_MODULE( FT_Renderer_Class, ft_smooth_lcd_renderer_class ) -+FT_USE_MODULE( FT_Renderer_Class, ft_smooth_lcdv_renderer_class ) -+FT_USE_MODULE( FT_Module_Class, psaux_module_class ) -+FT_USE_MODULE( FT_Module_Class, psnames_module_class ) -+/* EOF */ -diff --git a/freetype-2.4.0/src/gzip/adler32.c b/freetype-2.4.0_m/src/gzip/adler32.c -index c53f9dd..301698b 100644 ---- a/freetype-2.4.0/src/gzip/adler32.c -+++ b/freetype-2.4.0_m/src/gzip/adler32.c +diff --git b/freetype-2.4.0/src/gzip/adler32.c a/freetype-2.4.0/src/gzip/adler32.c +--- b/freetype-2.4.0/src/gzip/adler32.c 2010-07-13 04:07:16.000000000 +0800 ++++ a/freetype-2.4.0/src/gzip/adler32.c 2021-04-02 16:49:50.320326183 +0800 @@ -18,7 +18,7 @@ #define DO16(buf) DO8(buf,0); DO8(buf,8); - + /* ========================================================================= */ -ZEXPORT(uLong) adler32( /* adler, buf, len) */ +uLong adler32( /* adler, buf, len) */ uLong adler, const Bytef *buf, uInt len ) -diff --git a/freetype-2.4.0/src/gzip/ftgzip.c b/freetype-2.4.0_m/src/gzip/ftgzip.c -index e914e56..e7dc3f7 100644 ---- a/freetype-2.4.0/src/gzip/ftgzip.c -+++ b/freetype-2.4.0_m/src/gzip/ftgzip.c -@@ -122,7 +122,7 @@ - FT_MEM_FREE( address ); - } - -- -+#if 0 - #if !defined( FT_CONFIG_OPTION_SYSTEM_ZLIB ) && !defined( USE_ZLIB_ZCALLOC ) - - local voidpf -@@ -141,7 +141,7 @@ - } - - #endif /* !SYSTEM_ZLIB && !USE_ZLIB_ZCALLOC */ -- -+#endif - - /***************************************************************************/ - /***************************************************************************/ -diff --git a/freetype-2.4.0/src/gzip/infblock.c b/freetype-2.4.0_m/src/gzip/infblock.c -old mode 100644 -new mode 100755 -diff --git a/freetype-2.4.0/src/gzip/infcodes.h b/freetype-2.4.0_m/src/gzip/infcodes.h -old mode 100644 -new mode 100755 -diff --git a/freetype-2.4.0/src/gzip/inftrees.h b/freetype-2.4.0_m/src/gzip/inftrees.h -old mode 100644 -new mode 100755 -diff --git a/freetype-2.4.0/src/gzip/infutil.h b/freetype-2.4.0_m/src/gzip/infutil.h -old mode 100644 -new mode 100755 -index 7174b6d..cdf18b4 ---- a/freetype-2.4.0/src/gzip/infutil.h -+++ b/freetype-2.4.0_m/src/gzip/infutil.h -@@ -86,7 +86,7 @@ struct inflate_blocks_state { - +diff --git b/freetype-2.4.0/src/gzip/infutil.h a/freetype-2.4.0/src/gzip/infutil.h +--- b/freetype-2.4.0/src/gzip/infutil.h 2010-07-13 04:07:16.000000000 +0800 ++++ a/freetype-2.4.0/src/gzip/infutil.h 2021-04-02 16:49:55.861493918 +0800 +@@ -86,7 +86,7 @@ + /* masks for lower bits (size given to avoid silly warnings with Visual C++) */ #ifndef NO_INFLATE_MASK -local uInt inflate_mask[17]; +local const uInt inflate_mask[17]; #endif - + /* copy as much as possible from the sliding window to the output area */ -diff --git a/freetype-2.4.0/src/gzip/zconf.h b/freetype-2.4.0_m/src/gzip/zconf.h -old mode 100644 -new mode 100755 -index 3abf0ba..acff780 ---- a/freetype-2.4.0/src/gzip/zconf.h -+++ b/freetype-2.4.0_m/src/gzip/zconf.h -@@ -197,7 +197,6 @@ - # endif - #endif - -- - #ifndef ZEXPORT - # define ZEXPORT(x) static x - #endif -diff --git a/freetype-2.4.0/src/gzip/zlib.h b/freetype-2.4.0_m/src/gzip/zlib.h -index 50d0d3f..afdd938 100644 ---- a/freetype-2.4.0/src/gzip/zlib.h -+++ b/freetype-2.4.0_m/src/gzip/zlib.h -@@ -772,7 +772,8 @@ ZEXTERN(int) inflateReset OF((z_streamp strm)); +diff --git b/freetype-2.4.0/src/gzip/zlib.h a/freetype-2.4.0/src/gzip/zlib.h +--- b/freetype-2.4.0/src/gzip/zlib.h 2010-07-13 04:07:16.000000000 +0800 ++++ a/freetype-2.4.0/src/gzip/zlib.h 2021-04-02 16:50:05.026955804 +0800 +@@ -772,7 +772,7 @@ compression library. */ - + -ZEXTERN(uLong) adler32 OF((uLong adler, const Bytef *buf, uInt len)); -+//ZEXTERN(uLong) adler32 OF((uLong adler, const Bytef *buf, uInt len)); -+uLong adler32 OF((uLong adler, const Bytef *buf, uInt len)); - ++uLong adler32 OF((uLong adler, const Bytef *buf, uInt len)); + /* Update a running Adler-32 checksum with the bytes buf[0..len-1] and -diff --git a/freetype-2.4.0/src/gzip/zutil.h b/freetype-2.4.0_m/src/gzip/zutil.h -old mode 100644 -new mode 100755 -index c9688cd..6f2a54b ---- a/freetype-2.4.0/src/gzip/zutil.h -+++ b/freetype-2.4.0_m/src/gzip/zutil.h +diff --git b/freetype-2.4.0/src/gzip/zutil.h a/freetype-2.4.0/src/gzip/zutil.h +--- b/freetype-2.4.0/src/gzip/zutil.h 2010-07-13 04:07:16.000000000 +0800 ++++ a/freetype-2.4.0/src/gzip/zutil.h 2021-04-02 16:50:09.671119232 +0800 @@ -26,6 +26,7 @@ # include #endif - + +#define local #ifndef local # define local static - #endif -@@ -204,6 +205,7 @@ typedef unsigned long ulg; - - typedef uLong (*check_func) OF((uLong check, const Bytef *buf, - uInt len)); -+ - local voidpf zcalloc OF((voidpf opaque, unsigned items, unsigned size)); - local void zcfree OF((voidpf opaque, voidpf ptr)); - + #endif \ No newline at end of file